|
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]
|