I\'m integrating an API to my website which works with data stored in objects while my code is written using arrays.
I\'d like a quick-and-dirty function to convert
Converting and removing annoying stars:
$array = (array) $object; foreach($array as $key => $val) { $new_array[str_replace('*_', '', $key)] = $val; }
Probably, it will be cheaper than using reflections.