I have an array structure like this, which I’m able to print out just fine:
Array
(
[0] => Array
(
[title] => blah
[author] => Bob
[link] => randomlink
)
[1] => Array
(
[title] => random
[author] => George
[link] => randomlink
)
[2] => Array
(
[title] => blah
[author] => Bob
[link] => randomlink
)
)
Basically, I want to be able to print out only the information in the array that’s related to the ‘author’ ‘Bob’. As you can see, he has two items in there. When I print out the array, it should only show the 0 and 2 array since those are the only ones that contain the ‘author’ which is ‘Bob’. Any ideas?
1 Answer