【发布时间】:2014-09-27 18:17:47
【问题描述】:
来自android的调用如下
CallWebServiceTask task = new CallWebServiceTask(6, this,
"Fetching Data From Server");
int key = 0;
for(int i = 0; i < localIds.size(); i++) {
key = localIds.keyAt(i);
// get the object by the key.
task.addNameValuePair("ids", ""+key);
}
task.execute(url);
这会为键ids添加一个id列表。
当我这样做时,在我的 php 中,print_r($_POST); 它只返回 Array() 作为字符串。
如何,我如何将php中的数组值提取到一个数组中。谢谢。
【问题讨论】: