|
Is there and benefit of difference between the 2 ways?
I have found the most effective way
if (in_array($needle, array('value1', 'value2', 'value3')))
Thankyou for you input, just mgraphics way looks cleaner and simpler.
if($variable == 'bottom' || $variable == 'top')
looks basic because you are having to always put $variable in there again and again.
__________________
Websites Created;
warscope.com
ratepayers.org.nz
Last edited by lothop; 01-06-2009 at 09:18 PM..
|