【发布时间】:2017-11-15 03:08:39
【问题描述】:
你好我有这样的数组,你能帮我如何查看。
数组(2){ [0]=> 字符串(1)“2” [1]=> 字符串(2)“19” }
【问题讨论】:
-
您的问题未完成,无法理解问题。
你好我有这样的数组,你能帮我如何查看。
数组(2){ [0]=> 字符串(1)“2” [1]=> 字符串(2)“19” }
【问题讨论】:
如果你有这样的数组:
$array = ["2", "19"];
您可以像这样使用刀片模板引擎查看它:
@foreach($array as $item)
{{$item}}
@endforeach
如果你只是想在普通的 PHP 中访问它,虽然它会像这样:
foreach($array as $item) {
echo $item;
// or whatever you want to do with the information here
}
这是你想要做的吗?
【讨论】: