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