Tag Archives: declare variable

Variables in PHP

As always variables is used for holding some values. Create and declare variable. $name=’Sourcecodemart’; Now $name hold “Sourcecodemart”; <?php // Creating and Declaring variable. $name = “Sourcecodemart”; echo $name; ?> Rules for define variables. A variable always start with $ and follow by name. example : $name. A variable contains only A-Z, a-z, 0-9 and […]