![]() strcasecmp - Accepts two strings as arguments, performs a case-insensitive comparison and returns a value depending on the match.strcmp() - Accepts two strings as arguments, performs a case-sensitive comparison and returns a value depending on the match.PHP provides a number of functions that make it easy to perform a number of different string comparison tasks: In developing web applications it is extremely common to need to compare two strings. ![]() To pad the formatting with '_' characters to a width of 12 characters: To limit a floating point number to 2 decimal places: Specifies the number of decimal digits or maximum string lengthĪs always, some examples will hopefully help to clarify these options:
0 Comments
Leave a Reply. |