Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在服务器(a)中,我有一个脚本可以做一些事情,当任务完成时它返回一个像这样的数组:
Array ( [1372888] => 3 - 0 [1340712] => 0 - 0 );
我需要将此数组传递给服务器(b)。可以这样做吗?
您可以使用 json 来传递数据:
服务器 A:
$array = array("1372888" => "3 - 0", "1340712" => "0 - 0") $passArray = json_encode($array) ; /// Send
服务器 B:
// Receive data: $array = json_decode($array,true);