A variable can have a short name, like x, or a more descriptive name, like carName. Rules for PHP variable names: Variables in PHP starts with a $ sign, followed by the name of the variable The variable name must begin with a letter or the underscore character A variable name can only contain alpha-numeric characters and underscores (A-z, 0-9, and _ ) A variable name should not contain spaces Variable names are case sensitive (y and Y are two different variables)
PHP
Topic: Variables
What is PHP Variables?
Browse random answers:
What is Variables?
What is PHP Variables?
How do you declaring a variable?
Explain the difference between $message and $$message.
How can we check the value of a given variable is a number?
How do I check if a given variable is empty?
what is the static variable in function useful for?
How can we define a variable accessible in functions of a PHP script?
How can you pass a variable by reference?
If the variable $var1 is set to 10 and the $var2 is set to the character var1, what’s the value of $$var2?
What does $GLOBALS means?
What does $_ENV means?