title: Remove nested stdClass Object from single stdClass Object
body: <p>i need to remove nested stdClass Object. Now am get stdClass Object like this,</p>
  
  <pre><code>Array
  (
  [0] =&gt; Array
      (
          [0] =&gt; stdClass Object
              (
                  [cs_id] =&gt; 1
                  [cs_service_name] =&gt; 2
              )
      )
  
  [1] =&gt; Array
      (
          [0] =&gt; stdClass Object
              (
                  [cs_id] =&gt; 2
                  [cs_service_name] =&gt; 3
              )
  
          [1] =&gt; stdClass Object
              (
                  [cs_id] =&gt; 6
                  [cs_service_name] =&gt; 3
              )
      )
  
  [2] =&gt; Array
      (
          [0] =&gt; stdClass Object
              (
                  [cs_id] =&gt; 7
                  [cs_service_name] =&gt; 4
              )
      )
  )
  </code></pre>
  
  <p>But i need stdClass Object like this,</p>
  
  <pre><code>Array
  (
  [0] =&gt; Array
      (
          [0] =&gt; stdClass Object
              (
                  [cs_id] =&gt; 1
                  [cs_service_name] =&gt; 2
              )
          [1] =&gt; stdClass Object
              (
                  [cs_id] =&gt; 2
                  [cs_service_name] =&gt; 3
              )
          [2] =&gt; stdClass Object
              (
                  [cs_id] =&gt; 6
                  [cs_service_name] =&gt; 3
              )
          [3] =&gt; stdClass Object
              (
                  [cs_id] =&gt; 7
                  [cs_service_name] =&gt; 4
              )
      )
   )
  </code></pre>
  
  <p>any idea to remove nested stdClass Object. am using codeigniter3. Can please help me.</p>
  
  <p>Thanks in advance.</p>