Scalar FunctionsString Functions
strcmp
Compares two strings and returns -1, 0, or 1.
Syntax
strcmp(string1, string2)Parameters
Prop
Type
Returns: long
Examples
Example 1
print strcmp("abc", "abd")| print_0 (long) |
|---|
| -1 |
Compares two strings and returns -1, 0, or 1.
strcmp(string1, string2)Prop
Type
Returns: long
print strcmp("abc", "abd")| print_0 (long) |
|---|
| -1 |