note 99107 added to function.array-search
| From: | nothing at example dot com | Date: | Wed, 28 Jul 2010 09:23:17 +0000 |
| Subject: | note 99107 added to function.array-search | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-171181@lists.php.net to get a copy of this message | ||
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);
----
Server IP: 89.190.194.18
Probable Submitter: 93.152.187.27
----
Manual Page -- http://www.php.net/manual/en/function.array-search.php
Edit -- https://master.php.net/note/edit/99107
Del: integrated -- https://master.php.net/note/delete/99107/integrated
Del: useless -- https://master.php.net/note/delete/99107/useless
Del: bad code -- https://master.php.net/note/delete/99107/bad+code
Del: spam -- https://master.php.net/note/delete/99107/spam
Del: non-english -- https://master.php.net/note/delete/99107/non-english
Del: in docs -- https://master.php.net/note/delete/99107/in+docs
Del: other reasons-- https://master.php.net/note/delete/99107
Reject -- https://master.php.net/note/reject/99107
Search -- https://master.php.net/manage/user-notes.php