Quote:
Originally Posted by Twinny
To save lines. Doing this will drastically reduce the size of your current script.
Also, instead of doing
PHP Code:
if (condition)
statement;
if (condition)
statement;
if (condition)
statement;
You should get into the habit of using
PHP Code:
if (condition)
statement
else if (condition)
statement
else
statement
|
Actually, It's only really necessary if the following checks should only be possible when the previous are not true. Should probably use a switch in this case.