\
在PHP中做什麼?PHP(5.3+)有什麼(反斜槓)?
例如,https://github.com/foxbunny/CSRF4PHP/blob/60d9172b7f0cd93346cac9065fb17182854ebf1c/CsrfToken.php#L80-L87具有\FALSE
,\session_id
,和\Exception
:
public function __construct($timeout=300, $acceptGet=\FALSE){
$this->timeout = $timeout;
if (\session_id()) {
$this->acceptGet = (bool) $acceptGet;
} else {
throw new \Exception('Could not find session id', 1);
}
}
它使代碼不易讀。但對於[參考:這個符號在PHP中意味着什麼](http://stackoverflow.com/questions/3737139/reference-what-does-this-symbol-mean-in-php) – mario 2011-01-25 04:37:00
@mario非常漂亮的stackoverflow主題。感謝您的鏈接:) – Alfred 2011-01-25 04:39:28