Practice mode PHP

Which PHP function checks whether a variable has been set and is not null?

Correct answer C. isset()

Explanation

isset() returns true if the variable exists and its value is not null. empty() checks for empty values, and is_null() checks only for null.

Report a problem

Answer checked How we write and check questions

Tip: press A, B, C or D to answer, and N for the next question.

Advertisement

Have a question about this answer?

Your email address will not be published. Required fields are marked *

Links and website addresses are not allowed in comments.