如何获取此数组中的值? [重复]
问题描述:
This question already has an answer here:
- How can I access an array/object? 4 answers
I cannot figure out getting the string 'foo' printed from an array. How can I just print the value in 'tags'?
print_r(array_values($res));
Array
(
[0] => Array
(
[tags] => foo
)
)
</div>