我的 PHP 函数输出分隔数组而不是编号索引数组。现在的问题是,我怎样才能使这些输出加入一个数组?如果您有任何澄清,请告诉我。
这是当前正在输出的内容。
Array
(
[id] => 2
[name] => Jerry Maxwell
[upline] => 1
)
Array
(
[id] => 3
[name] => Roseann Solano
[upline] => 1
)
Array
(
[id] => 4
[name] => Joshua Doe
[upline] => 1
)
Array
(
[id] => 5
[name] => Ford Maxwell
[upline] => 1
)
Array
(
[id] => 6
[name] => Ryan Solano
[upline] => 1
)
对于这样的事情:
Array
(
[0] =>
[id] => 2
[name] => Jerry Maxwell
[upline] => 1
[1] =>
[id] => 3
[name] => Roseann Solano
[upline] => 1
[2] =>
[id] => 4
[name] => Joshua Doe
[upline] => 1
[3] =>
[id] => 5
[name] => Ford Maxwell
[upline] => 1
[4] =>
[id] => 6
[name] => Ryan Solano
[upline] => 1
)
我希望通过 PHP 来解决这个问题。