We had a long discussion on the basics of php , now we can move forward and know some fundamentals how to use the server side scripting .
$ The symbol dollar represents a start of the variable, that it is a valid identifier.
Example: $var ="hello";
$var =1;
Note : The variable in php can hold integer ,string, float , array , bollean and move over objects can also be stored.
Example :
$myInt = 1;
$mybool = True;
$myfloat= 1.5;
$mystring = "hello";
$friends = array("Dipanku", "Rakesh", "Abhijit");
* $myarray = array('first'=>1,'second'=>2);
*The array is stored in key value pair.
$ The symbol dollar represents a start of the variable, that it is a valid identifier.
Example: $var ="hello";
$var =1;
Note : The variable in php can hold integer ,string, float , array , bollean and move over objects can also be stored.
Example :
$myInt = 1;
$mybool = True;
$myfloat= 1.5;
$mystring = "hello";
$friends = array("Dipanku", "Rakesh", "Abhijit");
* $myarray = array('first'=>1,'second'=>2);
*The array is stored in key value pair.
No comments:
Post a Comment