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!


Page 5 of 5 FirstFirst 12345
Results 41 to 46 of 46
  1. #41
    Join Date
    Oct 2006
    Location
    Peterborough, UK
    Posts
    3,855
    Tokens
    216

    Latest Awards:

    Default

    Quote Originally Posted by Dentafrice View Post
    Yeah, and with Dan, years.. and he is still doing it.

    It's even recommended on the PHP.net site, that you don't use ()'s with language constructs, as it gives PHP more work to do.

    It was suggested that using ()'s with language constructs be removed in 6.0, and is still an undecided issue.
    What, where are you getting this information, using parenthesis doesn't make it do any extra work at all.


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

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

    Latest Awards:

    Default

    Note: Note that since return() is a language construct and not a function, the parentheses surrounding its arguments are not required. It is common to leave them out, and you actually should do so as PHP has less work to do in this case.
    Note: You should never use parentheses around your return variable when returning by reference, as this will not work. You can only return variables by reference, not the result of a statement. If you use return ($a); then you're not returning a variable, but the result of the expression ($a) (which is, of course, the value of $a).
    .....

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

    Latest Awards:

    Default

    Quote Originally Posted by Dentafrice View Post
    .....
    Did you not see the part where it says "in this case" and where I say "I don't use parenthesis on return"???


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

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

    Latest Awards:

    Default

    Yeah, it's for echo too.. I can't find it tonight.

    Either way the core still has to process it like a function, and it has it's limitations, and slows it down by a moderate degree.

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

    Latest Awards:

    Default

    Quote Originally Posted by Dentafrice View Post
    Yeah, it's for echo too.. I can't find it tonight.

    Either way the core still has to process it like a function, and it has it's limitations, and slows it down by a moderate degree.
    I don't think so


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

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

    Latest Awards:

    Default

    Read up on how the core actually works, you'll see how it goes at parsing languages constructs, using ()'s does give it more work.. because it has to sort through them, plus make sure not more then one variable is in it.

Page 5 of 5 FirstFirst 12345

Posting Permissions

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