array convert a object in 3 value in php code example Example: object to array php $array = (array) $yourObject;