Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[PHP][Tutorial] Elseif

Vous Pas Reel
Loyal Member
Joined
Nov 6, 2007
Messages
880
Reaction score
11
Lately i have seen people doing
PHP:
if ( var == var ) {
echo "penis";
} else {
if {var == var) {
}
}
That is not very secure, and can cuase errors. So today we learn the elseif statement :D.
OK, it is very simple, first it needs an opening if statment.
PHP:
If ($Account == HotelUnder ) {
echo "hello HotelUnder";
}
So perhaps for another acount you wanted it to say something else
PHP:
If ( $Account == HotelUnder ) {
echo "hello HotelUnder";
} Elseif ( $Account == Mental. ) {
echo "Welcome God";
}
So that would be an alternate to doing
PHP:
if ( var == var ) {
echo "penis";
} else {
if {var == var) {
}
}
Hope it helped :D
 
Back
Top