|
@@ 5486-5492 (lines=7) @@
|
| 5483 |
|
* @return string the portion of haystack. |
| 5484 |
|
* or false if needle is not found. |
| 5485 |
|
*/ |
| 5486 |
|
public static function strrchr($haystack, $needle, $part = false, $encoding = 'UTF-8') |
| 5487 |
|
{ |
| 5488 |
|
self::checkForSupport(); |
| 5489 |
|
$encoding = self::normalizeEncoding($encoding); |
| 5490 |
|
|
| 5491 |
|
return \mb_strrchr($haystack, $needle, $part, $encoding); |
| 5492 |
|
} |
| 5493 |
|
|
| 5494 |
|
/** |
| 5495 |
|
* Reverses characters order in the string. |
|
@@ 5534-5540 (lines=7) @@
|
| 5531 |
|
* @return string the portion of haystack. |
| 5532 |
|
* or false if needle is not found. |
| 5533 |
|
*/ |
| 5534 |
|
public static function strrichr($haystack, $needle, $part = false, $encoding = 'UTF-8') |
| 5535 |
|
{ |
| 5536 |
|
self::checkForSupport(); |
| 5537 |
|
$encoding = self::normalizeEncoding($encoding); |
| 5538 |
|
|
| 5539 |
|
return \mb_strrichr($haystack, $needle, $part, $encoding); |
| 5540 |
|
} |
| 5541 |
|
|
| 5542 |
|
/** |
| 5543 |
|
* Find position of last occurrence of a case-insensitive string. |