title: how to convert stdclass object to array in php and javascript
body: <p>first, i get the table value with jquery plugin name is tableToJson.
  and the type is json object. then i converting the json object with JSON.stringify. and the result show like this:</p>
  
  <pre><code>Array
  (
  [0] =&gt; stdClass Object
      (
          [Kode] =&gt; 450
          [Nama Menu] =&gt; ES JAHE/null
          [Sat] =&gt; TKO
          [Qty] =&gt; 1
          [Harga] =&gt; 25000
          [Jml Harga] =&gt; 25000
      )
  
  [1] =&gt; stdClass Object
      (
          [Kode] =&gt; 310
          [Nama Menu] =&gt; NASI/null
          [Sat] =&gt; CTG
          [Qty] =&gt; 2
          [Harga] =&gt; 20000
          [Jml Harga] =&gt; 40000
      )
  
  )
  </code></pre>
  
  <p>but i want the result is :</p>
  
  <pre><code>Array
  (
  [0](
          [Kode] =&gt; 450
          [Menu] =&gt; ES JAHE/null
          [Sat] =&gt; TKO
          [Qty] =&gt; 1
          [Harga] =&gt; 25000
          [price] =&gt; 25000
      )
  
  [1](
          [Kode] =&gt; 310
          [Menu] =&gt; NASI/null
          [Sat] =&gt; CTG
          [Qty] =&gt; 2
          [Harga] =&gt; 20000
          [price] =&gt; 40000
      )
  
    )
  </code></pre>
  
  <p>how i'm get the result like that with data type is array without stdclass object.</p>