Is there a way to output variable names in PHP for debugging purposes?
When debugging PHP code, it can be helpful to output variable names along with their values to understand the flow of the program better. One way to achieve this is by using the `var_dump()` function, which displays structured information about one or more expressions. By passing the variable name as a string to `var_dump()`, you can see the name of the variable along with its value in the output.
$variable = 'Hello, World!';
var_dump(compact('variable'));