Was macht ein \
in PHP?
Zum Beispiel CSRF4PHP hat \FALSE
, \session_id
und \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);
}
}