Suppose if the variable $a is equal to 5 and variable $b is equal to character a, what's the value of $$b?
Answer Posted / Digvijay Bisht
In PHP, $$b would not work as expected because it's used for variable variables, not for interpolating characters. Instead, you can use the concatenation operator (.) or heredoc syntax to achieve your desired result.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers