how to make array from array object result php code example Example: object values to array php array_values(get_object_vars($object));