note 40011 deleted from language.references.whatdo by colder

From: Date: Sat, 24 Feb 2007 11:46:08 +0000
Subject: note 40011 deleted from language.references.whatdo by colder
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-123821@lists.php.net to get a copy of this message
Note Submitter: agggka at hotmail dot com ---- to jazfresh at hotmail dot com (comments from 17-Feb-2004) You don't really need array_keys() <? function &findMyObjectByName($name) { foreach ($this->my_array as $key => $obj) { if (0 == strcmp($name, $obj->getName())) { return ($my_array[$key]); } } return (null); // Not found } ?>

« previous php.notes (#123821) next »