convert array of object in array php code example Example: php convert array to object $object = (object) $array;