plainhttpservice.php

来自「php for flash 之應用試試看」· PHP 代码 · 共 24 行

PHP
24
字号
<?php
    ////////////////////////////////////////////////////////////////////////////////
    // ADOBE SYSTEMS INCORPORATED
    // Copyright 2007 Adobe Systems Incorporated
    // All Rights Reserved.
    //
    // NOTICE:  Adobe permits you to use, modify, and distribute this file in accordance with the 
    // terms of the Adobe license agreement accompanying it.  If you have received this file from a 
    // source other than Adobe, then your use, modification, or distribution of it requires the prior 
    // written permission of Adobe.
    ////////////////////////////////////////////////////////////////////////////////
    //
    //  shipping.php contains our get_shipping_options($zipcode, $pounds) function.
    //  It returns an array mapping service name to price in US dollars.
    require ('shipping.php');

    $options = get_shipping_options($_REQUEST[zipcode], $_REQUEST[pounds]);
    foreach ($options as $service => $price) {
        $result[] = "$service: $price USD";
    }
    print implode("\n", $result);
?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?