PHP - echoing class properties that are protected
<p>For a data structure like this: </p>

<p><code>Google_Maps_Bounds Object [min_lon:protected] =&gt; -124.15252917 [min_lat:protected] =&gt; 36.39249130</code></p>

<p>How do you echo out the protected variables? </p>

<p>The following usual way doesn't seem to work: </p>

<p><code>echo $obj-&gt;'min_lon:protected' ;</code></p>

<p>yielding error: </p>

<p><code>'Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting T_STRING or T_VARIABLE or '{' or '$' '</code></p>
