Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    mwm
    mwm is offline
    Regular Coder
    Join Date
    Oct 2005
    Posts
    174
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How is this written

    how do you write in php this

    this var and this var or this var

    Thanks

  • #2
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    huh lol

  • #3
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,535
    Thanks
    8
    Thanked 1,092 Times in 1,083 Posts
    Is this what you're talking about?

    PHP Code:
    <?php

    $var1
    ="one";
    $var2="two";
    $var3="three";

    if((
    $var1=="one" && $var2=="two")||($var3=="three")){
    echo 
    "yep";
    }
    else{
    echo 
    "nope";
    }
    ?>


  •  

    Posting Permissions

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