SyntaxFix
Write A Post
Hire A Developer
Questions
This function is using in yii framework for ajax call check.
public function isAjax() { return isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH'] === 'XMLHttpRequest'; }