🎴 Flashcard Mode

PHP Web Development Fundamentals

Card1 / 20
Mastered0
Review0
QuestionClick to flip

Which of the following variables is not a predefined variable?

AnswerClick to flip back
A
$ask
💡 Explanation:

$ask is not a predefined variable in PHP. PHP has several predefined superglobal variables (automatically available in all scopes): $_GET, $_POST, $_REQUEST, $_SERVER, $_FILES, $_COOKIE, $_SESSION, $_ENV, and $GLOBALS. The question uses lowercase $get, $post, $request which are technically not the correct superglobal names (should be $_GET, $_POST, $_REQUEST), but $ask is definitely not a predefined PHP variable in any form.

Change Mode