how to convert array to an objects php code example Example: php convert array to object $object = (object) $array;