A

Admin • 833K Points
Coach

Q. How do you declare a variable in PHP?

  • (A) $var = 10;
  • (B) var $var = 10;
  • (C) declare $var = 10;
  • (D) variable $var = 10;
  • Correct Answer - Option(A)
  • Views: 25
  • Filed under category PHP
  • Hashtags:

Explanation by: Admin

Variables in PHP are declared with a $ sign followed by the variable name.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.