javascript array passed to post into PHP array
<p>How do you process a javascript array in PHP, when you're posting it.
Here's what I am doing:</p>

<pre><code>$(".action_btn").live('click', function() {
            var friends = new Array();
            $(this).parents('.friends_rec').find('input:checked').each(function(k) { friends[k] = $(this).val(); });
            var comment = $(this).parents('.friends_rec').find('textarea').val();

                $.post("update.php",
                    { uid: &lt;?php echo $_SESSION['uid']; ?&gt;, mid: &lt;?php echo $_GET['mid']; ?&gt;, friends: friends, comment: comment },
                    function() {

                    });
            }
        });
</code></pre>

<p>Question is, in update.php, what should I do to iterate this friends array?</p>
