Reputation: 113
I read find some use || exit;
what does this mean?
$this->auth($token) || exit;
$if(IS_GET){
echo($_GET['echostr']);exit;
} else {
$xml = file_get_contents("php://input");
$xml = new SimpleXMLElement($xml);
$xml || exit;
}
Upvotes: 2
Views: 68
Reputation: 4529
$this->auth($token) || exit;
means:
If $this->auth($token)
returns false, perform exit()
Upvotes: 4