Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 10 of 10

Thread: what one

  1. #1
    Join Date
    Apr 2011
    Posts
    11
    Tokens
    0

    Default what one

    would you rather do
    <?php
    if ($var==$var){echo $var;}
    ?>

    or
    <?php
    ($var==$var)?echo $var;
    ?>

  2. #2
    Join Date
    Feb 2006
    Location
    Scotland
    Posts
    2,087
    Tokens
    138

    Latest Awards:

    Default

    I tend to always use the traditional if statement rather than using the ternary operator, not sure why - just always done it like that.

  3. #3
    Join Date
    Apr 2009
    Posts
    4,289
    Tokens
    2,022
    Habbo
    iLogan

    Latest Awards:

    Default

    I would use the former.
    ex-hxl manager
    ex-event organizer
    ex-gfx designer
    ex-competition staff
    ex-content staff
    OFWGKΔ

  4. #4
    Join Date
    Apr 2011
    Posts
    12
    Tokens
    0

    Default

    Hm, try this!

    <?php
    $var=67787;
    echo $var;
    ?>

    -------------------------------------------------+

    I might not be giving you what you're looking for, because your script kinda confused me a bit. Lol! But if you're just trying to echo a variable, I've projected the right formula for you! http://w3schools.com
    Last edited by zCode; 15-04-2011 at 12:58 AM.

  5. #5
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    Quote Originally Posted by zCode View Post
    Hm, try this!

    <?php
    $var=67787;
    echo $var;
    ?>

    -------------------------------------------------+

    I might not be giving you what you're looking for, because your script kinda confused me a bit. Lol! But if you're just trying to echo a variable, I've projected the right formula for you! http://w3schools.com
    Was this a joke? LOL.

  6. #6
    Join Date
    Apr 2011
    Posts
    11
    Tokens
    0

    Default

    woa.. urm i dont think that anything related..

  7. #7
    Join Date
    Jan 2010
    Location
    United Kingdom
    Posts
    846
    Tokens
    1,766
    Habbo
    triston220

    Latest Awards:

    Default

    PHP Code:
    <?PHP
    if ($var == '1'){

    }else{

    }
    ?>


    Quote Originally Posted by Jaaaack! View Post
    See, however much I want this, my girlfriend uses my PC too much, and I would be killed.





  8. #8
    Join Date
    Apr 2011
    Posts
    4
    Tokens
    0

    Default

    GOOD LUCK!


    moderator alert Edited by Illuminite (Trialist Forum Moderator):
    Please do not post pointlessly.
    Last edited by Tom; 17-04-2011 at 01:21 PM.

  9. #9
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    That's stupid. 1 is an integer not a string.

  10. #10
    Join Date
    Oct 2006
    Location
    Peterborough, UK
    Posts
    3,855
    Tokens
    216

    Latest Awards:

    Default

    Unless it's a string in which case it is a string!


    visit my internet web site on the internet
    http://dong.engineer/
    it is just videos by bill wurtz videos you have been warned

Posting Permissions

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