note 116659 added to cachingiterator.getflags

From: Date: Fri, 06 Feb 2015 09:49:47 +0000
Subject: note 116659 added to cachingiterator.getflags
Groups: php.notes 
Request: Send a blank email to php-notes+get-201600@lists.php.net to get a copy of this message
use the 'CachingIterator::TOSTRING_USE_KEY', when echo this Object, output current 'key'; <?php $iterator = new ArrayIterator(array('apple'=>10, 'banana'=>20, 'cat'=>30)); $cache = new CachingIterator($iterator, CachingIterator::TOSTRING_USE_KEY); $cache->next(); $cache->next(); echo $cache; ?> output: banana ---- Server IP: 72.52.91.14 Probable Submitter: 202.104.129.55 ---- Manual Page -- http://php.net/manual/en/cachingiterator.getflags.php Edit -- https://master.php.net/note/edit/116659 Del: integrated -- https://master.php.net/note/delete/116659/integrated Del: useless -- https://master.php.net/note/delete/116659/useless Del: bad code -- https://master.php.net/note/delete/116659/bad+code Del: spam -- https://master.php.net/note/delete/116659/spam Del: non-english -- https://master.php.net/note/delete/116659/non-english Del: in docs -- https://master.php.net/note/delete/116659/in+docs Del: other reasons-- https://master.php.net/note/delete/116659 Reject -- https://master.php.net/note/reject/116659 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#201600) next »