Re: [PHP] Array: If i'm in the child array then how I tell the parent's key name..
Scott, I hope this code help you: [PHP CODE] /* * Author: * Josue Aranda <[EMAIL PROTECTED]> */ // This set an $arr $arr= array( 'ABC' => array( 'DEF' => 'Data'
RE: [PHP] Array --> If
Sounds like what you want is the "in_array" function. http://us4.php.net/manual/en/function.in-array.php $cases = array( 5, 15, 30, 60, 90, 120 ); if ( in_array($count, $cases) ) { EXECUTE PAGE } Regards, Erik Osterman http://osterman.com/ -Original Message- From: Jason Willi