array('method' => 'GET') );
// Create context
$contexte = stream_context_create( $options );
// Send request
$return = file_get_contents( 'http://www.gmenu.net/roos/getmenu?bid=JADEPALACECANC-SID&k=CF2C4DC906E870B8012B605A7C757CDCE5E4C96B', false, $contexte );
$content = json_decode($return, true);
setlocale(LC_MONETARY,"en_US");
echo "
";
foreach ($content as $key => $value) {
echo " ".$value["name"]." |
";
foreach($value["menus"] as $item) {
echo "";
if($item[multiplePrice] == true) {
echo $item[name]." | ".money_format('%.2n', floatval($item[price])).""."+";
} else {
echo $item[name]." | ".money_format('%.2n', floatval($item[price]));
}
echo " |
";
}
}
echo "
";
?>