Пример #1
0
function findWineByUPC($arr, $dbh)
{
    $wine = new Wine($dbh);
    $wine->fetchWineByUPC($arr['upc']);
    $json = $wine->jsonEncode($arr['location']);
    die($json);
}