Compares two strings in a case-sensitive way
The Strcmp () function compares binary security to two strings and is case-sensitive. In the form of:
int strcmp (string str1, String str2)
Depending on the result of the comparison, one of the
Summary of use of PHP string comparison functions strcmp () and strcasecmp (), strcmpstrcasecmp. In summary of the use of PHP string comparison functions strcmp () and strcasecmp (), strcmpstrcasecmp is one of the important features of string
Instance
Comparison of two strings (case-sensitive):
Definition and usage
The strcmp () function compares two strings.
Note: the strcmp () function is binary safe and case-sensitive.
Tip: This function is similar to the strncmp () function, but by
This article mainly introduces the use Summary of PHP string comparison functions strcmp () and strcasecmp (). This article introduces them in detail and provides specific examples, for more information, see
This article mainly introduces the use
Comparison and usage analysis of strcmp () and strcasecmp () function strings in PHP, strcmpstrcasecmp. Comparison and usage analysis of strcmp () and strcasecmp () function strings in PHP. This document describes the comparison and usage of strcmp (
This article mainly introduces the use summary of PHP string comparison functions strcmp () and strcasecmp (). This article introduces them in detail and provides specific examples, for more information about how to compare strings, it is one of the
PHP string comparison functions strcmp () and strcasecmp () use summary, strcmpstrcasecmp
Comparing strings is one of the most important features of string handling in any programming language. In addition to using the comparison operation notation
Compare two strings in case-sensitive modeThe Strcmp () function compares two strings in binary mode and is case sensitive. The format is:Int strcmp (string str1, string str2) The following possible values are returned based on the comparison
The Strcmp () function compares a binary security to two strings and is case-sensitive.
Compare two strings in a case-sensitive mannerThe Strcmp () function compares a binary security to two strings and is case-sensitive. The form is:int strcmp
Comparing strings is one of the most important features of string processing in any programming language. In addition to using comparison notation (= =, ) in PHP, a series of comparison functions are provided to enable PHP to perform more complex
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.