\
在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