strcmp « String « PHP






1.Comparing Strings
2.Comparing strings with strcmp()
3.strcmp() function performs a case-sensitive comparison of two strings.
4.int strcmp ( string str1, string str2 ), case-insensitive sibling, strcasecmp( )
5.For example, using my collation rules (Canadian-English), I obtain the following results: