PHP数组(列表)到表

PHP数组(列表)到表,php,arrays,Php,Arrays,我有一个数组如下 $x= array("Name","Age","Place","John",34,"London","Ram",12,"New Delhi"); 在这里,我必须得到如下信息 Name Age Place John 34 London Ram 12 New Delhi 是否有任何选项可以执行此操作?如果您知道可以使用的列数: 这将生成以下输出: Name Age Place John 34 Lond

我有一个数组如下

$x= array("Name","Age","Place","John",34,"London","Ram",12,"New Delhi");
在这里,我必须得到如下信息

Name    Age     Place
John    34      London
Ram     12      New Delhi

是否有任何选项可以执行此操作?

如果您知道可以使用的列数:

这将生成以下输出:

Name    Age     Place
John    34      London
Ram     12      New Delhi

您需要在表中显示数据?是的,或者是JSON格式。然后只需使用
JSON\u encode
就可以了。您唯一的选择是编写一些代码,这是您构建的一个非常无用的数组。除非你知道有多少事件构成了相关记录,否则它是无用的
Name    Age     Place
John    34      London
Ram     12      New Delhi