不过这里有一些不足,因为从php中发送的数据,可以看出,还需要在iOS进行进一步处理,才能得到最终文件的路径 找到了php使用二维数组的资料,写了一小段测试例子(真是新手了),等初步完成之后,再回过来修改这一部分: [php] view plaincopyprint? ?php $arr
不过这里有一些不足,因为从php中发送的数据,可以看出,还需要在iOS进行进一步处理,才能得到最终文件的路径
找到了php使用二维数组的资料,写了一小段测试例子(真是新手了),等初步完成之后,再回过来修改这一部分:
[php] view
plaincopyprint?
-
-
$arr[0]=array(
-
"album_cover" => "img3.test.com/p1030872603.jpg",
-
"album_id" => 49705332,
-
"album_name" => "\U522b\U4eba\U7684\U4e66\U623f",
-
"user_id" => 1233832,
-
"user_name" => "\U72d0\U8760",
-
"user_picurl" => "img3.test.com/icon/u1233832-146.jpg",
-
);
-
$arr[1]=array(
-
"album_cover" => "img4.test.com/p1880278549.jpg",
-
"album_id" => 91536010,
-
"album_name" => "\U65e7\U5ba4\U65b0\U5c45[\U5317\U4eac50\U5e73\U7c73\U5c0f\U5bb6]",
-
"user_id" => pei830,
-
"user_name" => PEI,
-
"user_picurl" => "img3.test.com/icon/ul2341445-326.jpg",
-
);
-
$arr[2]=array(
-
"album_cover" => "img5.test.com/p1880278549.jpg",
-
"album_id" => 91536010,
-
"album_name" => "\U65e7\U5ba4\U65b0\U5c45[\U5317\U4eac50\U5e73\U7c73\U5c0f\U5bb6]",
-
"user_id" => pei830,
-
"user_name" => PEI,
-
"user_picurl" => "img3.douban.com/icon/ul2341445-326.jpg",
-
);
-
$result = json_encode($arr);
-
print_r($result);
-
?>
效果是这样的:
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn