Jump to content

Multiple elseif statements


BrianM

Recommended Posts

<?php

 

if ...

 

elseif ...

 

elseif ...

 

elseif ...

 

elseif ...

 

elseif ...

 

elseif ...

 

else ...

 

the else always has to go last. I think, don't quote me on that.  :)

 

note you could just use the switch statement instead ;)

 

Regards ACE

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.