0
下面代碼中的變量$base
明顯超出範圍,但$urlS
和$urlE
變量不是?有人可以解釋爲什麼這是嗎?可變範圍外
class Yahoo {
//Code below to retrieve live currency rates from yahoo
private static $base = 'USD';
private static $urlS = LIVE_FEED_YAHOO;
private static $urlE = '=X&f=l1';
private $rate;
public function __construct($toCurr) {
$url = self::$urlS.$base.$toCurr.self::$urlE;
非常感謝,它總是小事情,我錯過! –