(object) not turning array into object php code example Example: php convert array to object $object = (object) $array;