Function __global->strrpos
Definitions
sources_custom/phpstub.php
- Find position of last occurrence of a char in a string.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $haystack | string | No | No | required parameter | N/A | N/A | Haystack |
| $needle | string | No | No | required parameter | N/A | N/A | Needle |
| $offset | integer | No | No | 0 | N/A | N/A | Offset at which to start |
Returns
- The offset it is found at (false: not found)
- Type: ~integer
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Find position of last occurrence of a char in a string.
*
* @param string $haystack Haystack
* @param string $needle Needle
* @param integer $offset Offset at which to start
* @return ~integer The offset it is found at (false: not found)
*/
function strrpos(string $haystack, string $needle, int $offset = 0)
* Find position of last occurrence of a char in a string.
*
* @param string $haystack Haystack
* @param string $needle Needle
* @param integer $offset Offset at which to start
* @return ~integer The offset it is found at (false: not found)
*/
function strrpos(string $haystack, string $needle, int $offset = 0)

