5 years ago in Php Variables and Syntax

How to declare a string variable in php?

[A] string str = “abc”;
[B] var string = “abc”;
[C] $str = “abc”;
[D] None of the above
Loading...
Next Question

Overall Stats

Attempted 61
Correct 35
Incorrect 5
Viewed 21

Answers

Guest
Guest
Shamsa hafeez
Shamsa hafeez - 3 days ago

Shamsa hafeez from Lahore, Pakistan is saying $str = “abc”; is correct answer

Dhanashri Bhuyar
Dhanashri Bhuyar - 1 month ago

Dhanashri Bhuyar from Mumbai, India is saying $str = “abc”; is correct answer

ayoub benigmim
ayoub benigmim - 1 month ago

ayoub benigmim from Casablanca, Morocco is saying $str = “abc”; is correct answer

Souad El
Souad El - 1 month ago

Souad El from Casablanca, Morocco is saying $str = “abc”; is correct answer

AHMED SOULIMANI
AHMED SOULIMANI - 1 month ago

AHMED SOULIMANI from Casablanca, Morocco is saying $str = “abc”; is correct answer

Related Questions

Which are invalid variable ?

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

How to define constant in php ?

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