title: how to get if array key is protected?
body: <p>i have this type of array:-<br>
  i want to get array elemtn.<br></p>
  
  <pre><code>context_course Object
   (
                       [_id:protected] =&gt; 15
                       [_contextlevel:protected] =&gt; 50
                       [_instanceid:protected] =&gt; 2 
                       [_path:protected] =&gt; /1/3/15 [_depth:protected] =&gt; 3 
  )
  </code></pre>
  
  <p>the problem is <code>[_id:protected]</code><br>
  i want to there value <code>15</code><br>
  how can i get if element is <code>protected</code>.<br>
  thanks.</p>