title: Convert jQuery Array string to PHP Array
body: <p>First of all, I gotta say I'm pretty new to PHP and I'm trying to get a PHP object on which I can use foreach.</p>
  
  <p>The following string is passed through $.ajax(); I'm trying to turn the following string:</p>
  
  <pre><code>$menu = "[
   {"title" : TEST1, "href" : #},
   {"title" : TEST2, "href" : QWERTY},
   {"title" : TEST3, "href" : QWERTY, "active" : 1}
  ]"
  </code></pre>
  
  <p>into and php object on which I can use a foreach loop:</p>
  
  <pre><code>foreach($menu as $li){
      echo $li['title'];
  }
  </code></pre>
  
  <p>Am I using the optimal solution for creating the menu items or should I be following another format?</p>
  
  <p>Thank you very much in advance!</p>
  
  <p>Best regards,
  Alex G.</p>