GkSeries.com

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.

DOWNLOAD CURRENT AFFAIRS PDF FROM APP

Please share this page

Click Here to Read more questions

Teacher Eligibility Test