<?php
0 => array ( "id" => "x", "dbfield" => "y"), 1 => array ( "id" => "quantity", "dbfield" => "QUANTITY_NEW") );
if($a["id"] === "quantity"){
return $a["dbfield"];
}
}, $array));
PD9waHAKCiRhcnJheSA9IGFycmF5ICgKCTAgPT4gYXJyYXkgKCAiaWQiID0+ICJ4IiwgImRiZmllbGQiID0+ICJ5IiksCgkxID0+IGFycmF5ICggImlkIiA9PiAicXVhbnRpdHkiLCAiZGJmaWVsZCIgPT4gIlFVQU5USVRZX05FVyIpCik7CgokZGJmaWVsZCA9IGFycmF5X2ZpbHRlcihhcnJheV9tYXAoZnVuY3Rpb24oJGEpewoJaWYoJGFbImlkIl0gPT09ICJxdWFudGl0eSIpewoJCXJldHVybiAkYVsiZGJmaWVsZCJdOwoJfQp9LCAkYXJyYXkpKTsKCnByaW50X3IoJGRiZmllbGQpOw==