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.
The correct way of declaring a variable in PHP:
$var_name
= value;
|
creating a variable containing a string, and a variable containing a number:
<?php
$txt="Hello World!"; $x=16; ?> |
No comments:
Post a Comment