Richard Quadling wrote:
Hi. With substr_compare, the prototype should say ... int substr_compare ( string $main_str , string $str , int $offset [, int $length = max(strlen($str), strlen($main_str) - $offset) [, bool $case_insensitivity = false ]] ) which looks a little complex, even when styled appropriately. I think something like ... int substr_compare ( string $main_str , string $str , int $offset [, int $length = see below [, bool $case_insensitivity = false ]] ) and ... "The length of the comparison. The default value is the largest of the length of the str compared to the length of main_str less the offset. " for the $length parameter description may be easier. Ideas?
I think you don't even need to put "see below": int substr_compare ( string $main_str, string $str, int $offset [, int $length [, bool $case_insensitivity = false ]] ) Chris
This is related to bug http://bugs.php.net/bug.php?id=50983 Regards, Richard.
-- Email: christopher.jo...@oracle.com Tel: +1 650 506 8630 Blog: http://blogs.oracle.com/opal/ Free PHP Book: http://tinyurl.com/f8jad