object values to array php
snippet in php

object to array php

user4471

$array = (array) $yourObject;

object values to array php

user9849

array_values(get_object_vars($object));