Wednesday, November 21, 2012

Variables in PHP

Variables are used for storing a values, like text strings, numbers or arrays. When a variable is declared, it can be used over and over again in your script. All variables in PHP start with a ‘$’sign symbol.
$var_name=value;

For example:

<?php
$txt=”Hello world”;
echo $txt;
?>

No comments:

Post a Comment