您好,欢迎访问一九零五行业门户网

php post接收的问题

html 向php post一条数据 $_post['pic'];
其中数据为http://www.baidu.com/1.pic;ht...等等
如何循环这条语句 每个$pic获取一条地址
array('image_src' => $pic, 'image_name' => '随机字符串.jpg'),);

回复内容: html 向php post一条数据 $_post['pic'];
其中数据为http://www.baidu.com/1.pic;ht...等等
如何循环这条语句 每个$pic获取一条地址
array('image_src' => $pic, 'image_name' => '随机字符串.jpg'),);

html

php
$pics = $_get['pic']; $data = []; foreach ($pics as $key => $value) { $data[] = [ 'image_src' =>$value, 'image_name' => mt_rand(1, 1111) . '.jpg' ]; } //over
pic[]=xxx.jpg&pic[]=xxx.jpg
其它类似信息

推荐信息