FR question: unset() and reset()

[email protected] (Rasmus Malver)
Newsgroups php.standards
Message-ID <[email protected]>
Hello standardisers,

When processing JSON data from an external API, it can be necessary to 
reset() and advance multiple arrays at the same time.

Unset takes unlimited variables as arguments, but resetting and all 
array movement (next, prev, end, etc.) takes only one.

	unset($a, $b, $c);
	# vs.
	reset($a);
	reset($b);
	reset($c);

However the array functions provide a return value, and the sort array 
functions take flags, which is presumably why this group has been 
harmonised to only take a single argument.

I cannot find this topic in the back catalogue. Has it been considered? 
Does it have legs to allow multiple arguments in the flag-less array 
functions?


Have a nice day,
Rasmus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.