5 years ago in Php Variables and Syntax

$a = 10;
$b = &$a; // by reference
$b = 20;
Result of echo $a;

[A] 10
[B] 20
[C] 30
[D] None of the above
Loading...
Next Question

Overall Stats

Attempted 47
Correct 13
Incorrect 22
Viewed 12

Answers

Guest
Guest
Shamsa hafeez
Shamsa hafeez - 3 days ago

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

Dhanashri Bhuyar
Dhanashri Bhuyar - 1 month ago

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

ayoub benigmim
ayoub benigmim - 1 month ago

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

Souad El
Souad El - 1 month ago

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

AHMED SOULIMANI
AHMED SOULIMANI - 1 month ago

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

Related Questions

Which symbol are used in php for comment ?

  • [A] //
  • [B] #
  • [C] /* */
  • [D] All of the above

Output of echo (int) ((0.1 + 0.7) * 10);

  • [A] 7
  • [B] 8
  • [C] 8.0
  • [D] None of the above

$a = 10; $b = $a; $b = 20; Result of echo $a;

  • [A] 10
  • [B] 20
  • [C] 30
  • [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

Which are invalid variable ?

  • [A] $name1
  • [B] $_name
  • [C] $1name
  • [D] All of the above