Function

strncmp

Synopsis

strncmp(string, string, int): int

Area
Runtime\PS\Core\Strings\Compare\strncmpareas

Description

strncmp compares at most $length leading bytes of $string1 and $string2 the way strcmp does; a $length past the end of both compares what is there, and a negative one compares nothing and answers 0.

Usage

$value = strncmp($arguments);
$fn = strncmp(...);

See also