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
)
)
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
)
)
Arrays work in depth. You can have array that store arrays and so on. If:
$res = array ( 0 => array ( ['tags'] => 'foo' ) );
echo $res[0]['tags']; // foo
does that make sense?
Also, be careful when using Array and array