Tell me if the variable $a is equal to 5 and variable $b is equal to character a, whats the value of $$b?
Answer Posted / Girjesh Kumar Mishra
$$b does not have any meaning in PHP. Variable variables can be created using the ${} syntax, but it would only work if $a contained the name of an existing variable. For example: nn```phpn$a = 'my_var';n$$a = 10;necho my_var; // Outputs 10, not a.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers