[nycphp-talk] code ?
Ken Robinson
kenrbnsn at rbnsn.com
Thu Jun 1 15:36:53 EDT 2006
At 03:29 PM 6/1/2006, Urb LeJeune wrote:
>Can someone explain $$_key = $_value (I see it often in plugin functions in
>Smarty dealing with passed parameters.)
>
>foreach ($params as $_key=>$_value) {
> switch ($_key) {
> case 'loop':
> $$_key = (array)$_value; // hmm....$$_key
> break;
That's using variable variables. It's all explained at
<http://us2.php.net/manual/en/language.variables.variable.php>
Ken
More information about the talk
mailing list