Quote:
Originally Posted by cbk1994
It is good practice to always format well, even if you're the only person who is going to see it. You will generally make less mistakes.
|
I only meant if 'he' wanted to do it, and no one else would see it, he can go ahead.. Not saying everyone in general should do it lol.. I took the time in changing Stefans 2001 baddy script styling it correctly. D:
If I didn't I don't think I'd ever have figured out what it was doing..
But I agree.. It is kind of like doing a turn single at a turn or stop sign even if there is no one else there to see.. Still a good habit to keep/practice..
Quote:
Originally Posted by cbk1994
It will return the result of the statement.
PHP Code:
echo(1 == 1); // echoes true echo(1 == 0); // echoes false echo("a" == "a"); // echoes true echo((5 + 2) == 7); // echoes true
|
Oh I see.. So would this be a good thing inside a class / function for ... w/e the function might do.. assuming the point is to be true or false... Also, can you return more then one thing, for instance maybe X and Y? or would you have to return X and Y in an array with X and Y in it?
I usually do this. variables so they work through the whole script D: and have not made any real functions that needed to be in classes and used everywhere, but I would like to make a bush system.. and other things..
One more thing... xD returns do not return temp. variables? I've had a problem with this and had to make the temp. a this. to pass it back x.x;