|
@@ 5481-5487 (lines=7) @@
|
| 5478 |
|
* @return string the portion of haystack. |
| 5479 |
|
* or false if needle is not found. |
| 5480 |
|
*/ |
| 5481 |
|
public static function strrchr($haystack, $needle, $part = false, $encoding = 'UTF-8') |
| 5482 |
|
{ |
| 5483 |
|
self::checkForSupport(); |
| 5484 |
|
$encoding = self::normalizeEncoding($encoding); |
| 5485 |
|
|
| 5486 |
|
return \mb_strrchr($haystack, $needle, $part, $encoding); |
| 5487 |
|
} |
| 5488 |
|
|
| 5489 |
|
/** |
| 5490 |
|
* Reverses characters order in the string. |
|
@@ 5529-5535 (lines=7) @@
|
| 5526 |
|
* @return string the portion of haystack. |
| 5527 |
|
* or false if needle is not found. |
| 5528 |
|
*/ |
| 5529 |
|
public static function strrichr($haystack, $needle, $part = false, $encoding = 'UTF-8') |
| 5530 |
|
{ |
| 5531 |
|
self::checkForSupport(); |
| 5532 |
|
$encoding = self::normalizeEncoding($encoding); |
| 5533 |
|
|
| 5534 |
|
return \mb_strrichr($haystack, $needle, $part, $encoding); |
| 5535 |
|
} |
| 5536 |
|
|
| 5537 |
|
/** |
| 5538 |
|
* Find position of last occurrence of a case-insensitive string. |