note 66839 added to function.next

From: Date: Tue, 30 May 2006 22:02:26 +0000
Subject: note 66839 added to function.next
Groups: php.notes 
Request: Send a blank email to php-notes+get-112569@lists.php.net to get a copy of this message
And if you want to know if there are any array elements in array before given key, you can use this function: function any_array_keys_before($keyname, &$array) { if (!is_array($array)) { return false; } if (empty($keyname)) { return false; } $set = false; $count = 0; foreach ($array as $key => $value) { if ($set === false && $key != $keyname) { $count ++; } else if ($key == $keyname) { $set = true; } } return $count > 0 ? true : false; } ---- Server IP: 212.47.220.13 Probable Submitter: 84.50.2.42 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.next.php Edit -- http://master.php.net/note/edit/66839 Del: integrated -- http://master.php.net/note/delete/66839/integrated Del: useless -- http://master.php.net/note/delete/66839/useless Del: bad code -- http://master.php.net/note/delete/66839/bad+code Del: spam -- http://master.php.net/note/delete/66839/spam Del: non-english -- http://master.php.net/note/delete/66839/non-english Del: in docs -- http://master.php.net/note/delete/66839/in+docs Del: other reasons-- http://master.php.net/note/delete/66839 Reject -- http://master.php.net/note/reject/66839 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#112569) next »