Simple question in PHP, how to convert this below array to be string?
print_r($_POST['cb']);
//result
Array ( [0] => Array ( [id] => 1 [tipe] => create ) [1] => Array ( [id] => 1 [tipe] => delete ) [2] => Array ( [id] => 2 [tipe] => read ) [3] => Array ( [id] => 2 [tipe] => delete ) )
I tried this below code but not working:
echo implode(", ", $_POST['cb']);
//result
Array
(
[0] => Array
(
[id] => 1
[tipe] => read
)
[1] => Array
(
[id] => 1
[tipe] => update
)
[2] => Array
(
[id] => 2
[tipe] => update
)
)
What I want is to get id and tipe for each array.