[Tickets #5086] Re: foreach with references in the tasklists.inc template

bugs at bugs.horde.org bugs at bugs.horde.org
Fri Jun 1 09:09:13 UTC 2007


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=5086
-----------------------------------------------------------------------
 Ticket             | 5086
 Updated By         | thomas.jarosch at intra2net.com
 Summary            | foreach with references in the tasklists.inc template
 Queue              | Nag
 Version            | HEAD
 Type               | Bug
 State              | No Feedback
 Priority           | 1. Low
 Owners             | 
-----------------------------------------------------------------------


thomas.jarosch at intra2net.com (2007-06-01 02:09) wrote:

> foreach ($shares as $key => $share) {
> $share->get('name')
> }

btw: PHP5 supports references in foreach, but that's out of the question
right now for Horde. Using PHP5 it can be written like this:

foreach ($shares as $key => &$share) {
$share->get('name')
}





More information about the bugs mailing list