PHP » PYTHON |
login |
register |
about
|
|
substr_compare(PHP 5) substr_compare — Binary safe comparison of 2 strings from an offset, up to length characters Description
int substr_compare
( string $main_str
, string $str
, int $offset
[, int $length= 0
[, bool $case_insensitivity= false
]] )
substr_compare() compares main_str from position offset with str up to length characters. Parameters
Return ValuesReturns < 0 if main_str from position offset is less than str , > 0 if it is greater than str , and 0 if they are equal. If length is equal or greater than length of main_str and length is set, substr_compare() prints warning and returns FALSE. Changelog
Examples
Example #1 A substr_compare() example
<?php
|
more
Recently updated
more
Most requested
|