Advertisement
modimil

Variables in PHP

May 2nd, 2012
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.39 KB | None | 0 0
  1. http://phpmysql-academy.blogspot.in/
  2.  
  3. Example: 1
  4.  
  5.     <?php
  6.  
  7.     $name ="Alex";
  8.     $age=19;
  9.  
  10.     echo $name;
  11.  
  12.     ?>
  13.  
  14.  
  15. Example: 2
  16.  
  17.     <?php
  18.  
  19.     $name ="Alex";
  20.     $age=19;
  21.  
  22.     echo $age;
  23.  
  24.     ?>
  25.  
  26.  
  27.  
  28. Example: 3
  29.  
  30.     <?php
  31.  
  32.     $name ="Alex";
  33.     $age=19;
  34.  
  35.     echo "concat"."ination";
  36.  
  37.     ?>
  38.  
  39.  
  40. Example: 4
  41.  
  42.     <?php
  43.  
  44.     $name ="Alex";
  45.     $age=19;
  46.  
  47.     echo "My name is $name and my age is $age.";
  48.  
  49.     ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement