Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/294.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 我通过POST方法在我的url上收到一个多维数组,但我没有';我不知道什么是数组,所以我怎么知道数组中有什么数据_Php - Fatal编程技术网

Php 我通过POST方法在我的url上收到一个多维数组,但我没有';我不知道什么是数组,所以我怎么知道数组中有什么数据

Php 我通过POST方法在我的url上收到一个多维数组,但我没有';我不知道什么是数组,所以我怎么知道数组中有什么数据,php,Php,我通过POST方法在我的url上接收到一个多维数组,但我不知道什么是数组,所以我如何知道数组中有什么数据 <?php $body = print_r($_POST); $myfile = fopen("smsgatewayme.txt", "w") or die("Unable to open file!"); fwrite($myfile, $body); fclose($myfile); ?> 我现在不知道数组的名称和数组中的数据是什么。我想知道

我通过POST方法在我的url上接收到一个多维数组,但我不知道什么是数组,所以我如何知道数组中有什么数据

<?php

 $body = print_r($_POST);

    $myfile = fopen("smsgatewayme.txt", "w") or die("Unable to open file!");
    fwrite($myfile, $body);
    fclose($myfile);
?>


我现在不知道数组的名称和数组中的数据是什么。我想知道数组中有什么。在这里学习:如果希望print\r返回某些内容,而不是直接进行输出,则需要将第二个参数设置为true。请给我一个可以显示收到的post数据的代码。因为我想知道通过post接收的是什么数据,我只知道通过post方法接收的是数据,数据类型是多维数组。