You are here: foreach « All PHP « IT news, forums, messages
foreach

Posted by Vince Morgan on 04/15/07 01:03

I'm new to php and often discover that what looks like an error to me in a
piece of code is in fact functionality that I was unaware of.
In another php forum today I came across the snip below.
I don't think it's appropriate to ask in that forum while the OP's question
had not yet been addressed.
The usage of the curly brackets is screwing with my head, most especialy the
last line.

foreach (array($section, 'newImage', "${section}_width", "$
{section}_height") as $val)
$this->$val =& ${$val};

I would be most grateful if someone could shed some light on this.
TIA
Vince

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация