I think that from the title it's not entirely clear, but this is the situation:
I have an array like this one (it's bigger, this is just an example):
$array = array(
array('name' => 'John', 'age' => '29', 'from' => 'Uknown'),
array('name' => 'Brad', 'age' => '27', 'from' => 'Idk'),
array('name' => 'Phil', 'age' => '31', 'from' => 'My House')
);
I'm trying to find a fast-way using native functions of PHP (without using loops or other things) that specifing the name of this array inside another array, it gives me back the info related to this name.
Example:
If I specific Brad
it gives me back an array with:
array('name' => 'Brad', 'age' => '27', 'from' => 'Idk')