Manuál PHP | ||
---|---|---|
Předcházející | Další |
strncmp
Popis
int strncmp ( string str1, string str2, int len )
This function is similar to strcmp(), with the
difference that you can specify the (upper limit of the) number of
characters (len
) from each string to be
used in the comparison. If any of the strings is shorter than
len
, then the length of that string will be
used for the comparison.
Vrací < 0 pokud je str1
menší než
str2
; > 0 pokud je str1
větší než str2
, a 0 pokud jsou shodné.
Pozn.: toto srovnání je case-sensitive.
Viz také: ereg(), strncasecmp(), strcasecmp(), substr(), stristr(), strcmp() a strstr().
Předcházející | Domů | Další |
strncasecmp | Nahoru |