I'm not real fond of this, but it seems to work:
function assign_arr($arr)
{
global $x;
if ($arr['title'] == 'Application Fee') {
$x = $arr;
}
}
array_map('assign_arr', $product);
I think the way you're doing it is better. I'd make one change (besides better formatting, better variable naming, and array element quoting):
foreach ($product_arr as $sub_arr) {
if ($sub_arr['title'] == "Application Fee") {
$x_arr = $sub_arr;
break;
}
}