$arr = [
[
"id" => 1,
"view" => 2,
'category_id' => 2,
'title' => "标题一",
"model" => 12,
'desc' => "摘要",
],
[
"id" => 123,
"view" => 2,
'category_id' => 1,
'title' => "标题二",
"model" => 101,
'desc' => "摘要",
]
];
我想取出id为 123 的数组,整个一维数组
希望可以传入一个id,以及下标, 就可以得到 下标的值
$title=getval(123,'title');