note 107901 added to iterator.key

From: Date: Wed, 14 Mar 2012 00:34:45 +0000
Subject: note 107901 added to iterator.key
Groups: php.notes 
Request: Send a blank email to php-notes+get-186647@lists.php.net to get a copy of this message
And converts everything to integer except string, so in php the post process could be: public function key() { $yourKey = $this->createYourKey(); if (is_object($yourKey) || is_array($yourKey)) throw new Exception('Array and Object not allowed.'); elseif (is_string($yourKey)) return $yourKey; else return (int) $yourKey; } ---- Server IP: 69.147.83.197 Probable Submitter: 178.48.199.63 ---- Manual Page -- http://www.php.net/manual/en/iterator.key.php Edit -- https://master.php.net/note/edit/107901 Del: integrated -- https://master.php.net/note/delete/107901/integrated Del: useless -- https://master.php.net/note/delete/107901/useless Del: bad code -- https://master.php.net/note/delete/107901/bad+code Del: spam -- https://master.php.net/note/delete/107901/spam Del: non-english -- https://master.php.net/note/delete/107901/non-english Del: in docs -- https://master.php.net/note/delete/107901/in+docs Del: other reasons-- https://master.php.net/note/delete/107901 Reject -- https://master.php.net/note/reject/107901 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#186647) next »