Suppose if the variable $a is equal to 5 and variable $b is equal to character a, what's the value of $$b?



Suppose if the variable $a is equal to 5 and variable $b is equal to character a, what's the va..

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

Post New Answer

More WordPress Interview Questions

What are magic methods and how are they used in php?

1 Answers  


Can you hide posts on wordpress?

1 Answers  


What are the difference between tag & category in wordpress?

1 Answers  


Does wordpress make money?

1 Answers  


Tell us can I rename the wordpress folder?

1 Answers  


what is tag in wordpress? Explain

1 Answers  


How many types of users role in wordpress? Explain

1 Answers  


What is category in wordpress? Explain

1 Answers  


Does wordpress use html?

1 Answers  


What is the difference between a category and a page in wordpress?

1 Answers  


What are the template files list for development wordpress theme?

1 Answers  


How do I hide my wordpress site from public view?

1 Answers  


Categories