1.

Which one of the following functions will convert a string to all uppercase?(a) strtoupper()(b) uppercase()(c) str_uppercase()(d) struppercase()The question was asked during an interview for a job.My doubt stems from Strings and Regular Expressions topic in portion Strings and Regular Expressions of PHP

Answer» CORRECT option is (a) strtoupper()

Best EXPLANATION: Its prototype follows STRING strtoupper(string STR).


Discussion

No Comment Found

Related InterviewSolutions