how i can Convert $_POST in a array?
php, post
Solution
You could do
$a = json_decode($_POST['selected_friends'], true);
Problem
by using ``` print_r($_POST); ``` i am getting data something like this ``` Array ( [selected_friends] => {"0":"699712136","1":"1622040878","2":"100002980112267"}) ``` how i can use it as array and put it into a array variable like ``` $a[0] = 699712136; $a[1] = 1622040878; ``` and so on.