Boolean, Arrays, null value in PHP Brief Description : 4th Day Lecture


boolean, array, null value

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> 


Share this article :

Post a Comment

Give your reviews about this blog. Leave your comments. What do you think about this post?

Comments Guidelines:

1) I love to read comments, but please avoid spam.

2) Like this blog, share your insights, and spread the word.

3) You can use basic HTML/xHTML tags.

4) All comments are DoFollow—please use the section professionally.

5) Kindly mention your name or brand below your comment.

6) Constructive suggestions for improvement are always welcome.

7) Do not forget to explore our main agency platform at pingbooster.site.

Thanks for visiting Samee Articles.

========================================

Explore custom digital solutions and WordPress plugins at PingBooster Plugins.

Best Regards,

Samee U. Feroz

 
Copyright © 2013-2016. Samee Articles - All Rights Reserved
Proudly powered by Blogger