Posted by Aggelos on 02/07/07 16:13
function objects_from_array($var){
$return = array();
if(is_object($var)){
$return = $var;
}
if(is_array($var)){
foreach($var as $item){
$return = array_merge($return, objects_from_array($item));
}
}
return $return;
}
Ok that will work now but it is not what I want because at the end my
object gets converted into an assiciative array.
So my product->title now would become product[;title']
Do you know why my version isn't working ? you said something about
void... but i didn't understood that...
Navigation:
[Reply to this message]
|