Jump to content

PHP: Difference between revisions

48 bytes removed ,  10 January 2008
m
Line 63: Line 63:
PHP variables can store any data you wish. They start with a $ sign and contain alphanumerical characters, but must always start with a letter.
PHP variables can store any data you wish. They start with a $ sign and contain alphanumerical characters, but must always start with a letter.
   
   
  $example1 = “example”;
  $example1 = "example";
  echo $example1;
  echo $example1;


This will output the text “example”.
This will output the text "example".


Variables as the name suggest can be altered after they're declared.
Variables as the name suggest can be altered after they're declared.


  $example1 = “altered example”;
  $example1 = "altered example";


$example1 now contains “altered example” and the previous contents are gone.
$example1 now contains "altered example" and the previous contents are gone.


[[Category:Helpdesk]]
[[Category:Helpdesk]]
244

edits