1.

Which function is used to verify whether a variable contains a value?(a) header()(b) footer()(c) inset()(d) isset()I have been asked this question by my college professor while I was bunking the class.Question is from User Authentication in section File and Session Handling in PHP of PHP

Answer»

Right answer is (d) isset()

EASY explanation: The isset() function determines WHETHER a variable has been ASSIGNED a value. Its prototype follows: BOOLEAN isset(mixed VAR [,mixed var [,…]]).



Discussion

No Comment Found

Related InterviewSolutions