Re: [PHP] Passing objects as a reference and extracting the index of an associative array.

2003-09-04 Thread John W. Holmes
Webmaster wrote: Hi, i am using the smarty template engine. Here is the problem that I would like to ask about: function initTop(&$page, $array) { for ($i=0; $iassignVars(, $array[$i]) } } The function is supposed to know which object's attributes she is supposed to change. Do I have to pass

[PHP] Passing objects as a reference and extracting the index of an associative array.

2003-09-04 Thread Webmaster
Hi, i am using the smarty template engine. Here is the problem that I would like to ask about: function initTop(&$page, $array) { for ($i=0; $iassignVars(, $array[$i]) } } The function is supposed to know which object's attributes she is supposed to change. Do I have to pass the object as a