Saturday, October 3, 2009

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:

IT NEWS

New IT World |Technology Computer Robotics |Pakistan Plus

Designed and Seo by : WebMangoes | Back to TOP