Online GK Series

This site is dedicated to the aspirants of competitive exams SSC, UPSC, Railways, Postal Assistants, Bank, GATE and NET

Q.

Which function is used to compare strings as strings in PHP ?

A startswith()
B strcmp()
C compare()
D compareTo()
Answer & Explanation
Option: [B]

To compare strings as strings in PHP strcmp() is used.

Computer Science Books

Your Valuable Comments Please...

Please Like Us
Brand