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 |
How to hide directory browsing in wordpress from server using .htaccess file?
How do I create a wordpress site?
How can I change what appears between categories when I post in more than one category?
Tell me how is creating a site on wordpress.org different from wordpress.com?
Can you have 2 themes in wordpress?
Where is the root directory of my wordpress website?
How do I publish changes on wordpress?
How do I put a youtube social link on facebook?
Is wordpress seo friendly?
Do I need to download wordpress?
Where can I host my wordpress site?
Tell me what is the basic difference between posts vs. Pages?