Case Sensitivity in PHP Function Names
While exploring code, you may encounter questions regarding the case sensitivity of PHP function names. Similarly, a recent query arose concerning the case sensitivity of mySQL_fetch_array function calls.
The PHP documentation states the following:
"Function names are case-insensitive, though it is usually good form to call functions as they appear in their declaration."
This implies that user-defined functions are not case-sensitive. However, a proposal was considered to make functions and objects case-sensitive in PHP5.
In practice, it is recommended to follow the convention of using the same casing as the function declaration for consistency and readability.
The above is the detailed content of Are PHP Function Names Case-Sensitive?. For more information, please follow other related articles on the PHP Chinese website!