5 years ago in Php Variables and Syntax

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".
Loading...
Next Question

Overall Stats

Attempted 34
Correct 11
Incorrect 13
Viewed 10

Answers

Guest
Guest
SUMON WIN - 3 years ago

Given: Answer C and Answer D is same.Answer C should be (The vale of $a is '10')

Shamsa hafeez
Shamsa hafeez - 6 days ago

Shamsa hafeez from Lahore, Pakistan is saying The value of \$a is "10". is correct answer

Dhanashri Bhuyar
Dhanashri Bhuyar - 1 month ago

Dhanashri Bhuyar from Mumbai, India is saying The value of 10 is "10". is correct answer

ayoub benigmim
ayoub benigmim - 1 month ago

ayoub benigmim from Casablanca, Morocco is saying The value of 10 is "10". is correct answer

AHMED SOULIMANI
AHMED SOULIMANI - 1 month ago

AHMED SOULIMANI from Casablanca, Morocco is saying The value of $a is "10". is correct answer

Related Questions

Which tags are used in php ?

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

How to define constant in php ?

  • [A] $
  • [B] define
  • [C] #define
  • [D] All of the above

Output of this code echo "Here a literal brace + dollar sign: {\$";

  • [A] Here a literal brace + dollar sign: {\$
  • [B] Here a literal brace + dollar sign: \$
  • [C] Here a literal brace + dollar sign: {
  • [D] None of the above

Which syntax used to Declare complex string in php ?

  • [A] Basic Syntax
  • [B] Variable Syntax
  • [C] Heredoc Syntax
  • [D] None of the above