Suppose if the variable $a is equal to 5 and variable $b is equal to character a, what's the value of $$b?
Answer / 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 |
What are magic methods and how are they used in php?
Can you hide posts on wordpress?
What are the difference between tag & category in wordpress?
Does wordpress make money?
Tell us can I rename the wordpress folder?
what is tag in wordpress? Explain
How many types of users role in wordpress? Explain
What is category in wordpress? Explain
Does wordpress use html?
What is the difference between a category and a page in wordpress?
What are the template files list for development wordpress theme?
How do I hide my wordpress site from public view?