Hi: strn(case)cmp dosen't support a negative length as its third paramter, while substr dose.
I wrote a patch to make strn(case)cmp supporting negative length, make following script works as expect: <?php if (strncmp("prefix_num", "num", -3) === 0) { echo "they have same suffix\n"; } ?> here is the rfc: https://wiki.php.net/rfc/strncmpnegativelen any question? plz worte me back. thanks -- Laruence Xinchen Hui http://www.laruence.com/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php