hi.
found out how to do it.
squigly brackets can be used to use variables to access object member variables like so::
while($element = each($row))
$this->{$element["key"]} = $element["value"];
thanks anyway!
can anyone enlighting me on how i can use variable variables to access object member variables?
PHP:--------------------------------------------------------------------------------
while($element = each($row))
{
//want to be able to assign array values to corresponding
//member variables...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.