convert an object array to class code example Example: object to array php $array = (array) $yourObject;