get_object_vars() for non-OOP class
<p>In OOP where there's classes and objects, I can use <code>get_object_vars()</code> to get a list of all properties/vars in that class. </p>

<p>In this case, I'm not using OOP. I have some functions and some vars declared outside the functions. When I need to access some of these vars inside a function, I re-declare it as <code>global</code> inside the function. But how do I get a list of all vars declared outside. Is this possible? I'm looking for something like <code>get_object_vars</code> but for non-OOP code.</p>
