Thursday, February 2, 2012

PHP Tutorial : The Variables


              II - B - The Variables
$ before a string means that we are talking about a variable, it is called as you want then, but never focus or space in a variable name.

A variable is typed: it may take 4 types (in order below):

The types of variables :

  1. string
  2. integer (whole number)
  3. bool (Boolean binary logic means such true or false)
  4. float (real number)


Study well every detail:
  • All instructions (all) end with a semicolon (;).
  • Only the variable string requires quotes (single or double quotes prefer for the moment, we will see why later) ...
  • The boolean is true, but without quotation marks, it has the opposite ... false.
  • The actual number is a point in Anglo-Saxon and not a comma ...
Feel free to customize these examples and the grind by changing the data to assimilate.
See You

0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More