Boolean, Arrays, null value in PHP Brief Description
Sample 1 : PHP Booleans Brief Description
Boolean can be either TRUE or False. i.e.$x=true
$y=false
Simple Code to show of Boolean rule:
my name is "Noor"
Sample 2 : PHP Arrays Brief Description
An array is used to store multiple values in a single Variable.Arrays are useful when you want to store a group of data.
array (size=3) 0 => string 'sameeullahferoz' (length=15) 1 => int 22 2 => float 5.3
specific datatype in array.
My Height is 5.3
Sample 3 : null Values Variable in PHP
null
samee <html>
<head>
<title>Boolean, Arrays, null value Brief Description : 4th Day Lecture of PHP</title>
</head>
<body>
<h1 align="center">Boolean, Arrays, null value in PHP Brief Description</h1>
<h2 align="left">Sample 1 : PHP Boolean Brief Description</h2>
<?php
echo "Booleans can be either TRUE or False. i.e. <br />";
echo '$x=true <br />';
echo '$y=false <br />';
?>
<?php echo "Simple Code to show of Boolean rule: <br />" ?>
<?php
$istrue = false;
if($istrue)
{
echo "my name is \"Samee\"";
} // if $istrue variable was true, then it will be run. otherwise never.
else
{
echo "my name is \"Noor\""; #backslash is used to give output of double quotes.
}
?>
<h2 align="left">Sample 2 : PHP Arrays Brief Description</h2>
<?php
echo "An array is used to store multiple values in a single Variable. <br />";
?>
<!-- An Example of PHP Arrays -->
<?php
$bio=array("sameeullahferoz",22,5.3); //it is round braces not square bracket.
//In Array values are counted as 0, 1, 2, like it.
var_dump($bio); //to show the types and values of arrays.
echo "<br />";
echo "specific datatype in array. <br />";
echo "My Height is {$bio[2]}"; //it is used to call value from arrage
?>
<h2 align="left">Sample 3 : null Values Variable in PHP</h2>
<?php
$name=null;
var_dump($name);
$name="samee";
echo $name
?>
</body>
</html>



