help how to check if a variable can be found inside an array
Posted: Wed Sep 21, 2005 10:13 pm
Code: Select all
if ($var1==$orient_array['border']['0'] || $orient_array['border']['1'])A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
if ($var1==$orient_array['border']['0'] || $orient_array['border']['1'])Code: Select all
if(in_array($somevaluetosearchinthearray, $arrayofvalues))
{
//
} ELSE
{
//
}