Pass PHP Array via jQuery Ajax

后端 未结 5 1068
粉色の甜心
粉色の甜心 2021-01-22 13:40

I\'ve got a php array:

$toField = explode(\",\", $ids);  //Which looks something like \'24,25,26,29\'

I want to pass this array via jQuery AJAX

5条回答
  •  抹茶落季
    2021-01-22 14:07

    you can get the string in the php code and separate it on the comma, then loop through the values.

    http://us3.php.net/split

提交回复
热议问题