• The Facebook Platform

Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2010
    Location
    Lahore, Pakistan
    Age
    25
    Posts
    3,818
    Points
    6,772.51
    Rep Power
    10000

    new_new 08 - Logical Expressions ( Logical Operators in PHP ) - PHP/MySQL in Urdu

    Logical Expressions ( Logical Operators in PHP )

    In This Tutorial, you will learn "What are Logical Operators in PHP and how can we use Logical Operators in IF Conditions"











    PHP Code Used in Tutorial
    PHP Code:
    <?php 

        $a 
    10;
        
    $b 5;
        
    $c 6;
        
    /*if(($a>$b)&&($b>$c))
        {
            echo "A is Greater then B & B is Greater then C";
        }
        else
        {
            echo "A is Not Greater then B & B is Not Greater then C";
        }*/
        
    if(($a>$b)||($b>$c))
        {
            echo 
    "The Value of A is Greater OR";
            echo 
    "The Value of B is Greater";
        }
        else
        {
            echo 
    "A is Not Greater then B & B is Not Greater then C";
        }
    ?>
    <br />
    <?php 

    $d 
    null;

    if(!isset(
    $d))
    {
        
    //echo "Variable Contains Value ".$d;
        
    $d 10;
        echo 
    "The Value Assigned To Variable which is ".$d;
    }
    else 
    {
        echo 
    "Variable Already Have Value ".$d;
    }
    ?>
    Last edited by Їийоcёйт Кїllєґ; 10-27-2013 at 05:08 AM.
    Find Me On Social Networks

    Facebook | Twitter | Google+


  2. #2
    Join Date
    Jan 2010
    Posts
    745
    Points
    786.22
    Rep Power
    763

    Default

    Nice tutorial
    bea8af048504640198b8398fbd411ad2696bf7142ddc6e7f3344d981afd3725482fd8f48 - 08 - Logical Expressions ( Logical Operators in PHP ) - PHP/MySQL in Urdu

  3. #3
    Join Date
    Jan 2010
    Location
    Lahore, Pakistan
    Age
    25
    Posts
    3,818
    Points
    6,772.51
    Rep Power
    10000

    Default

    New video uploaded
    Find Me On Social Networks

    Facebook | Twitter | Google+



 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •