| 
   Slide 4.c: PHP syntax Slide 4.e: A PHP example Home  | 
  
    
   | 
 
   
Variables are used for storing values, such as numbers, strings or function results.
All variables in PHP start with a $ sign symbol.
The script shows the variable type can be changed while program executes.
   
   | 
  
   
To concatenate two or more variables together, use the dot (.) operator.
The script shows variables do not need to be strings.  
They could be integer or real numbers or others.
 
   
   | 
  
a-Z, 0-9, and _ ).
 $my_string or with capitalization such as $myString.