|
@@ 5453-5459 (lines=7) @@
|
| 5450 |
|
* @return string the portion of haystack. |
| 5451 |
|
* or false if needle is not found. |
| 5452 |
|
*/ |
| 5453 |
|
public static function strrchr($haystack, $needle, $part = false, $encoding = 'UTF-8') |
| 5454 |
|
{ |
| 5455 |
|
self::checkForSupport(); |
| 5456 |
|
$encoding = self::normalizeEncoding($encoding); |
| 5457 |
|
|
| 5458 |
|
return \mb_strrchr($haystack, $needle, $part, $encoding); |
| 5459 |
|
} |
| 5460 |
|
|
| 5461 |
|
/** |
| 5462 |
|
* Reverses characters order in the string. |
|
@@ 5501-5507 (lines=7) @@
|
| 5498 |
|
* @return string the portion of haystack. |
| 5499 |
|
* or false if needle is not found. |
| 5500 |
|
*/ |
| 5501 |
|
public static function strrichr($haystack, $needle, $part = false, $encoding = 'UTF-8') |
| 5502 |
|
{ |
| 5503 |
|
self::checkForSupport(); |
| 5504 |
|
$encoding = self::normalizeEncoding($encoding); |
| 5505 |
|
|
| 5506 |
|
return \mb_strrichr($haystack, $needle, $part, $encoding); |
| 5507 |
|
} |
| 5508 |
|
|
| 5509 |
|
/** |
| 5510 |
|
* Find position of last occurrence of a case-insensitive string. |