title: Get a value from object
body: <p>My query is return a stdclass of objects</p>
  
  <p>How i can get value of  - affected_rows -</p>
  
  <pre><code>    Object (
      [affected_rows] =&gt; 0  
      [connect_errno] =&gt; 0 
      [connect_error] =&gt; [errno] =&gt; 0 
      [error] =&gt; [error_list] =&gt; Array ( ) [field_count] =&gt; 0
      [host_info] =&gt; localhost 
      [stat] =&gt; Uptime: 261195 Threads: 5 Questions: 14167 Slow queries: 0 
  Opens: 2969 Flush tables: 1 Open tables: 191 Queries per second avg: 0.054 
     [thread_id] =&gt; 1593 [warning_count] 
  =&gt; 0 ) [result:protected] =&gt; mysqli
  </code></pre>
  
  <p>i tried pass the objects as a array but dont works</p>
  
  <p>thanks</p>