PHP TUTOR variables rules

php variables rules

  1. It must start with a letter or underscore "_".
  2. Can be comprised of alpha-numeric characters and underscores. a-z, A-Z, 0-9, or _ .
  3. Variables with more than one word should be separated with underscores. $first_secondvariablename
  4. Variables with more than one word can also be distinguished with capitalization. $ItsMyName