My PHP Array (example, Print_r dump)
Array
(
[0] => Array
(
[Nick] => Bobby
[FullName] => Bob Smith
)
[1] => Array
(
[Nick] => Mikey
[FullName] => Mike Smithers
)
)
If I don’t know the values “Nick” or “FullName” how can I access the values in them.
The array will have two values and I was looking to understand how to get access to them if I don’t know the name of it.
I would like it to print out (for example)
Output example trying to get to:
“Value one is Bobbie value two is Bob Smith “
but I don’t know [Nick] or [FullName] how would one access “Bobbie” or “Bob Smith” (Array being passed in)
Thanks.
1 Answer