note
fullermd
<blockquote>Presumably, that get_object_vars function exists elsewhere in the code</blockquote>
<p>
Actually, it's a [href://http://us.php.net/manual/en/function.get-object-vars.php|standard PHP function]. It turns an object into an (associative) array of its properties.
</p>
<p>
PHP's json_decode turns the map/hash/whatever into technically an object rather than an array. Little odd, though perhaps fitting the 'JS' part of 'JSON' in a way. In that case, the extra step is needed to get something you can refer to as an array. From the <c>print_r()</c> output, it looks like it may have actually turned it into an array since it only had numeric keys, but that's too deep in PHP's DWIM for me to suss out.
</p>
920093
920097