Online GK Series

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

Get Attractive Job

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.

Your Valuable Comments Please...

Useful Computer Science EBooks