Home
PHP
Chart
Class
Components
Cookie Session
Data Structure
Data Type
Date
Design Patterns
Development
DNS
Email
File Directory
Form
Functions
Graphics Image
HTML
Language Basics
Login Authentication
Math
MySQL Database
Network
Operator
PDF
Reflection
Statement
String
Utility Function
Web Services SOAP WSDL
XML
strcmp « String « PHP
PHP
String
strcmp
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: