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