note 66838 added to function.next

From: Date: Tue, 30 May 2006 21:52:15 +0000
Subject: note 66838 added to function.next
Groups: php.notes 
Request: Send a blank email to php-notes+get-112568@lists.php.net to get a copy of this message
If you want to check, if there are some more elements in array after given key, you can use the following function: function more_array_keys($keyname, &$array) { if (!is_array($array)) { return false; } if (empty($keyname)) { return false; } $set = false; $count = 0; foreach ($array as $key => $value) { if ($set === true) { $count++; } 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/66838 Del: integrated -- http://master.php.net/note/delete/66838/integrated Del: useless -- http://master.php.net/note/delete/66838/useless Del: bad code -- http://master.php.net/note/delete/66838/bad+code Del: spam -- http://master.php.net/note/delete/66838/spam Del: non-english -- http://master.php.net/note/delete/66838/non-english Del: in docs -- http://master.php.net/note/delete/66838/in+docs Del: other reasons-- http://master.php.net/note/delete/66838 Reject -- http://master.php.net/note/reject/66838 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#112568) next »