php sending array from an input value through ajax
<p>I'm saving an array like this</p>

<pre><code>&lt;input type="hidden" value="Array ( [0] =&gt; cb_05 [1] =&gt; cb_06 [2] =&gt; cb_07 [3] =&gt; cb_08 [4] =&gt; cb_09 [5] =&gt; type ) " id="price_id" name="price_id"&gt;
</code></pre>

<p>I need to grab the array and send it through a post in jquery</p>

<pre><code>var price_id = $("#price_id").val();

$.post("class.php",{price_id:price_id},function(data){


        alert(data);


    });
</code></pre>

<p>When I do foreach in the class it doesn't see it as an array, I think it's because it's being sent as a string, is there a way around this?</p>
