strnatcasecmp

strnatcasecmp

(PHP 4, PHP 5, PHP 7)

strnatcasecmpCase insensitive string comparisons using a "natural order" algorithm

Description

int strnatcasecmp ( string $str1 , string $str2 )

This function implements a comparison algorithm that orders alphanumeric strings in the way a human being would. The behaviour of this function is similar to strnatcmp(), except that the comparison is not case sensitive. For more information see: Martin Pool's 登录查看完整内容