1.Array
In array stored multiple value in single variable..
exmaple:
<html>
<body>
?>php
$movies=array("kriss", "ddlj", "pk", "pyare mohan");
var_dump($_movies);
?>
</body>
</html>
2.String
string is a squance of character.....
example:
<html>
<body><?php
$a="abc";
$b="xyz";
echo $a;
echo "<br>";
echo $b;
?>
</body>
</html>
3.Integer
>> integer writen in without decimals
NOTE:
1.integer must be in 0 to 9 didgit2.can not contain comma or blank
3.positive or nagative
4.integer are in three format
>decimal
>hexa decimal
>octal
example:
<html>
<body>
<?php
$a=12345;
var_dump $a;
?>
</body>
</html>
4.Float
floating number is in decimal point
ex: 11.25
example:
<html><body>
<?php
$a=11.25;
var_dump ($a);
?>
</body>
</html>
5.Boolean
Boolean are used to check the condition condition are true or false....6.Null
null is the special data type its value is null
<?php
$a = "Hello bhargav";
$a = null;
var_dump($a);
?>
$a = "Hello bhargav";
$a = null;
var_dump($a);
?>
7.Resources
>> it is not actual data type. it storing a refernce
to function and resources external to php.
No comments:
Post a Comment