return array value in jquery
<p>I need to return an array from PHP and in success when I print it it says undefined. How can I get the value of array?</p>

<pre><code>$.ajax({
      type: "POST",
      url: "test2.php",   
      data : {      
                  price : [101, 69, 51],        
                  id : [1, 2, 3]    
},
      success: function(response) { 

         alert response[0];
      }
})
</code></pre>

<p>//PHP</p>

<pre><code>echo $_REQUEST["price"];
</code></pre>
