On 21 August 2012 23:26, Yasuo Ohgaki <yohg...@ohgaki.net> wrote:
> array_walk is the best(fast and memory efficient) way
> to delete elements.

If array_walk() is the best (fast and memory efficient) way to delete
elements, why have we had the following line in the manual, for the
array_walk() callback, for over a decade [1]? (The exact phrasing has
changed slightly one time, but the message has remained the same)
"Only the values of the array may potentially be changed; its
structure cannot be altered, i.e., the programmer cannot add, unset or
reorder elements."

[1] http://svn.php.net/viewvc/?view=revision&revision=75124

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to