【发布时间】:2020-09-03 03:01:05
【问题描述】:
好的,我已经设置了这段代码,它可以工作了,
原始格式
array(196)
我使用以下命令复制了两次(用作 curlopt_postfields 中的变量)。
$pid=196;
$qty=2;
$quantity = trim(str_repeat("{$pid},", $_POST['qty']), ',');
$postfields["pid"] = $quantity;
$quantity = array_fill(0, $_POST['qty'], $pid);
输出是
196
196
现在我想以相同的格式对其进行编码
array(base64_encode(serialize(array("486" => "windows|Windows"))))
谁能帮帮我?
【问题讨论】: