Discover case sensitive definition example, include the articles, news, trends, analysis and practical advice about case sensitive definition example on alibabacloud.com
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
[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:
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
Parameter instance
Use the "natural" algorithm to compare two strings (case-sensitive):
", Echo strnatcmp ("10Hello world!", "2Hello world!"); >
Definition and usage
The strnatcmp () function uses a "natural" algorithm to compare two strings
Instance
Replace the character "world" in the string "Hello world!" with "Peter":
Definition and usage
The Str_replace () function replaces some characters in a string (case-sensitive).
The function must adhere to the following rules:
If the
A function is a collection of code that accomplishes a particular function and can be divided into system functions and user functions. Users can implement a specific need by creating a custom function.
1. Function definition Syntax structure:
PHP
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.