Home >> PHP >> strncasecmp() function in PHP

strncasecmp() function in PHP

The strncasecmp() function (case-insensitive) used for compares two strings.

Syntax

strncasecmp (string1,string2,length)

Example

echo strncasecmp("Hello Dear!","hello dear!",3);

Output

0

Post Your Comment

Next Questions
strncmp() function
strpbrk() function
strpos() function
strrchr() function
strrev() function
strripos() function
strrpos() function
strspn() function
strstr() function
strtok() function
strtolower() function
strtoupper() function
strtr() function
substr() function
substr_compare() function
substr_count() function
substr_replace() function
trim() function
ucfirst() function
ucwords() function
wordwrap() function
array
Array type
Numeric array
Associate array

Copyright ©2022 coderraj.com. All Rights Reserved.