I'm sending post array from swift to php server. Some issues my array looks like the server:
$my_array = $_POST['array'];
$my_array is ["item1","item2","item3"] but type is string not array.
I want to get array elements but when I try $my_array[0] is returning the first element of string " as you know.
I know I need to change my swift code but I wanna learn how can I convert these string to array and get elements.
Thanks
$my_array = json_decode($str);, where$stris your string.