title: Parsing php array in python
body: <p>I'm getting a PHP array from a web page (as a string).
  It looks like :</p>
  
  <pre><code>Array
  (
  [k1] =&gt; Array
      (
          [a] =&gt; Array
              (
                  [id] =&gt; 1
                  [age] =&gt; 60
              )
  
          [b] =&gt; Array
              (
                  [id] =&gt; 2
                  [age] =&gt; 30
              )
  
      )
  
  [k2] =&gt; v2
  )
  </code></pre>
  
  <p>I want to parse it in python.
  Does anyone have an idea how to do this?</p>
  
  <p>Thanks,
  Rivka</p>
  
  <p>Edit:
  This is really not a json, like a few people commented.
  Thanks for the comments, and I updated the question.</p>