Re: foreach() using current() strange beahvior

From: Date: Sat, 23 Jun 2007 19:33:35 +0000
Subject: Re: foreach() using current() strange beahvior
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-257713@lists.php.net to get a copy of this message
On Sat, 2007-06-23 at 15:15 -0400, Nathan Nobbe wrote: > > in summary, COW or not; i think the documentation could be revised a bit to > clarify these subtleties. Regardless of additional documentation or not, I think it's rather poor choice of programming style to mix the foreach construct with the older, lower level, internal array manipulation and probing functions. I think that is what should be documented since you just might get weird results :) Cheers, Rob. -- .------------------------------------------------------------. | InterJinn Application Framework - http://www.interjinn.com | :------------------------------------------------------------: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `------------------------------------------------------------'

« previous php.general (#257713) next »