5 years ago in Php Variables and Syntax

$name = ’foo’; 
$$name = ’bar’; 
Result of echo $foo;

[A] foo
[B] $name
[C] $$name
[D] bar
Loading...
Next Question

Overall Stats

Attempted 54
Correct 13
Incorrect 19
Viewed 22

Answers

Guest
Guest
Shamsa hafeez
Shamsa hafeez - 1 day ago

Shamsa hafeez from Lahore, Pakistan is saying foo is correct answer

Dhanashri Bhuyar
Dhanashri Bhuyar - 1 month ago

Dhanashri Bhuyar from Mumbai, India is saying bar is correct answer

ayoub benigmim
ayoub benigmim - 1 month ago

ayoub benigmim from Casablanca, Morocco is saying foo is correct answer

Souad El
Souad El - 1 month ago

Souad El from Casablanca, Morocco is saying bar is correct answer

AHMED SOULIMANI
AHMED SOULIMANI - 1 month ago

AHMED SOULIMANI from Casablanca, Morocco is saying bar is correct answer

Related Questions

Output of the code:- echo 'This is \'my\' string';

  • [A] • This is 'my' string
  • [B] • This is \'my\' string
  • [C] • This is my string
  • [D] • None of the above

Output of this Code

  • [A] So I said, “Hello World”
  • [B] So I said, "Hello $who"
  • [C] TEXT So I said, "Hello $who" TEXT
  • [D] None of the above

Output of this code :- $a = 10; echo "The value of \$a is \"$a\".";

  • [A] The value of 10 is "10".
  • [B] The value of \$a is \"10\".
  • [C] The value of \$a is "10".
  • [D] The value of $a is "10".

Which tags are used in php ?

  • [A]
  • [B] <% %>
  • [C] <# #>
  • [D] All of the above

Which are the global array in php ?

  • [A] $_POST
  • [B] $_GET
  • [C] $_REQUEST
  • [D] All of the above