PHP is not case sensitive. We recommend that you always stick to "Case sensitivity ". Note that classes and functions are case-insensitive. However, even if you are negligent, the interpreter will catch this error during debugging. I. Case
In the relational database, ORACLE/SQL_SERVER/DB2 has a case-sensitive data, but MySQL is a bit strange, the data is not case-sensitive, see below for details.MySQL the default rules for database name, table name, column name, and alias
PHP handling of case-sensitive issues is messy, writing code may occasionally problem, so here to summarize.
But I'm not encouraging you to use these rules. We recommend that you always adhere to the "case sensitive" and follow the Uniform Code
[Pinyin4j] converting Chinese characters into pinyin (case sensitive) in java, and pinyin4j in case sensitive
Pinyin4J is a lib that can convert Chinese characters into pinyin, which is very practical. Its maven address is:
1.--Case Sensitive
SELECT * from a where a= ' AbCdE ' collate chinese_prc_cs_ai--case sensitive
SELECT * from a where a= ' AbCdE ' collate chinese_prc_ci_ai--case-insensitive
2. If you want all storage tables on the server to be case-sensitive, you
PHP is not case sensitive. We recommend that you always stick to "Case sensitivity ". Note that classes and functions are case-insensitive. However, even if you are negligent, the interpreter will catch this error during debugging.
I. Case
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
Instance
Comparison of two strings (case-sensitive):
Definition and usage
The strncmp () function compares two strings (case sensitive).
Note: strncmp () is binary safe and case-sensitive.
Tip: This function is similar to the strcmp () function,
Instance
Find the last occurrence of "PHP" in the string:
Definition and usage
The Strrpos () function finds the position of the last occurrence of a string in another string (case-sensitive).
Note: the Strrpos () function is
Instance
Find the location where "PHP" first appears in the string:
Definition and usage
The Strpos () F function finds the position of the first occurrence of a string in another string (case-sensitive).
Note: the Strpos () function is
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.