|
@@ 4573-4580 (lines=8) @@
|
| 4570 |
|
* |
| 4571 |
|
* @return string|false The portion of haystack or false if needle is not found. |
| 4572 |
|
*/ |
| 4573 |
|
public static function strrchr($haystack, $needle, $part = false, $encoding = 'UTF-8') |
| 4574 |
|
{ |
| 4575 |
|
if ($encoding !== 'UTF-8') { |
| 4576 |
|
$encoding = self::normalize_encoding($encoding); |
| 4577 |
|
} |
| 4578 |
|
|
| 4579 |
|
return \mb_strrchr($haystack, $needle, $part, $encoding); |
| 4580 |
|
} |
| 4581 |
|
|
| 4582 |
|
/** |
| 4583 |
|
* alias for "UTF8::strstr()" |
|
@@ 4654-4661 (lines=8) @@
|
| 4651 |
|
* |
| 4652 |
|
* @return string|false <p>The portion of haystack or<br />false if needle is not found.</p> |
| 4653 |
|
*/ |
| 4654 |
|
public static function strrichr($haystack, $needle, $part = false, $encoding = 'UTF-8') |
| 4655 |
|
{ |
| 4656 |
|
if ($encoding !== 'UTF-8') { |
| 4657 |
|
$encoding = self::normalize_encoding($encoding); |
| 4658 |
|
} |
| 4659 |
|
|
| 4660 |
|
return \mb_strrichr($haystack, $needle, $part, $encoding); |
| 4661 |
|
} |
| 4662 |
|
|
| 4663 |
|
/** |
| 4664 |
|
* Find position of last occurrence of a case-insensitive string. |