Variables in PHP
- storage for values or expressions
- starts with $ ( ex: $sample1)
- variable name must begin with a
letter or
underscore ( $student or $_student )
- no spaces ( error: $stu dent, should be: $student )
- case sensitive ( $student is not the same with $Student )
- assignment operator is = ( $student=1 ; assigns value number 1 to the variable )
- use quotes " " to assign text value ( $student="Bram" )
- the value may change during program execution