1.

Which one of the following function operates similarly to fgets(), except that it also strips any HTML and PHP tags form the input?(a) fgetsh()(b) fgetsp()(c) fgetsa()(d) fgetss()The question was asked in semester exam.Question is taken from File System and PHP in section File and Session Handling in PHP of PHP

Answer»

The correct ANSWER is (d) fgetss()

The best I can EXPLAIN: The function fgetss() returns a line, with HTML and PHP TAGS removed, from an open file. This function OPERATES similarly to fgets(), except that it also strips any HTML and PHP tags FORM the input.



Discussion

No Comment Found

Related InterviewSolutions