Thursday, May 9, 2013

PHP Variables


Variables are used for storing values, such as numbers, strings or function results, so that they can be used many times in a script.

Variables in PHP

  • Variables are used for storing a values, like text strings, numbers or arrays.
  • When a variable is set it can be used over and over again in your script
  • All variables in PHP start with a $ sign symbol.
  • The correct way of setting a variable in PHP:


No comments:

Post a Comment