note 103971 deleted from function.strncmp by danbrown
| From: | danbrown@php.net | Date: | Sat, 14 May 2011 17:40:23 +0000 |
| Subject: | note 103971 deleted from function.strncmp by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-179724@lists.php.net to get a copy of this message | ||
Note Submitter: eachcan at gmail dot com
----
<?php
function estrncmp($str1, $str2, $len) {
if ($len >= 0) {
return strncmp($str1, $str2, $len);
} else {
return strcmp(substr($str1, $len), substr($str2, $len));
}
}