WordPress Support Officer Question: Download WordPress Support Officer PDF

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

Tweet Share WhatsApp

Answer:

Answer #1
100, it's a reference to existing variable.

Answer #2
5, $$b acts as a variable variable and would be the same as writing $a.

Answer #3
$a=5; $b="a"; echo $$b; it will be 5 not 100;

Download WordPress Support Officer PDF Read All 31 WordPress Support Officer Questions
Previous QuestionNext Question
Would I use the print "$a dollars" or "{$a} dollars" to print out the amount of dollars in this example?Who is founder of the WordPress?