Berserk Docs
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

On this page