1.

Which function is used to split a string into a series of substrings, with each string boundary is determined by a specific separator?(a) break()(b) divide()(c) explode()(d) md5()I had been asked this question by my school teacher while I was bunking the class.This question is from User Authentication topic in division File and Session Handling in PHP of PHP

Answer»

The correct ANSWER is (C) explode()

The explanation is: Although they are a SIMILAR function, you should use explode() instead of split(). In fact split() function has been deprecated ALTOGETHER.



Discussion

No Comment Found

Related InterviewSolutions