Variables in php
Using variables in php
In php there is not any need of declaring a variable before adding value to it.
Variables in php start with a dollar sign "$" and there are some rules for naming a variable.
Naming rules are
1.A variable name cannot have space
2.Alphanumerics and underscroes are used in a variable's name
Suppose we want to store "info" in a variable which is "$i" then the coding will be
<php?
$i="info";
?>
0 comments:
Post a Comment