Sunday, November 20, 2011

Which symbol is used in PHP to declare variables?


Ans

All variables in PHP start with a $ sign symbol.
The correct way of declaring a variable in PHP:
$var_name = value;

No comments:

Post a Comment