Subscribe To Our Newsletter

Sign Up Now To Get Free Coupon Codes, Event Coupon Codes Updates, Offers Updates. It's 100% Free!

We Hate Spam! Really, It's terrible and we never do it.

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?

Meet Samee Ullah Feroz On Google Plus
Comments Description is given below:
1) I love to read comments, but do not spam.
2) Like this blog and also tweet its posts.
3) You can use some xHTML tags.
4) All Comments are Do Follow, Please try to use blog professionally.
5) Mention Your Name below the comment.
6) You can also suggest for improvement.
7) Do not forget to subscribe Samee Articles blog.

---------------------------------------
Thanks for visiting QWC.Me.
==========================================
For free guidelines contact me on SEO Expert | Samee Ullah Feroz is online there.
==========================================
Best Regards

 
Support : | Internet Marketing Specialist And Business Developer
Copyright © 2013-2016. Samee Articles - All Rights Reserved
Proudly powered by Blogger