note 99107 deleted from function.array-search by danbrown

From: Date: Fri, 30 Jul 2010 16:39:09 +0000
Subject: note 99107 deleted from function.array-search by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-171256@lists.php.net to get a copy of this message
Note Submitter: nothing at example dot com ---- i tried and array_search is not working at all !!!! first it stops if the value is 0, then cannot find index.js - i replaced it this way and now works fine (rofl) foreach ( $jsA as $key => $value ){ if($value=='index.js') $indexJsPos = $key; } //$indexJsPos = array_search( 'index.js' );var_dump($indexJsPos);

« previous php.notes (#171256) next »