6.5.10

PHP - Tutorial II

Variable declarations:

Declare variables using '$' symbol, starting with alphabet characters and "_" allowed.

Ex: $id, $student_name, $count, $var1  etc.,

Assigning values to varibles, are describes the datatype of variable.

Declare string varibales with in double quotes.

Ex:  $id = 1;   //integer
      $studnent_name = "phppandits" // Strings
      $ave_marks = "98.88";
     

1 comment: