To convert array to object use: [php]$obj = (object)$array;[/php] To convert object to array [php]$arr = (array)$object;[/php]