Function __global->strripos
Definitions
sources_custom/phpstub.php
- Find position of last occurrence of a char in a string (case-insensitive).
- 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 |
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 (case-insensitive).
*
* @param string $haystack Haystack
* @param string $needle Needle
* @return ~integer The offset it is found at (false: not found)
*/
function strripos(string $haystack, string $needle)
* Find position of last occurrence of a char in a string (case-insensitive).
*
* @param string $haystack Haystack
* @param string $needle Needle
* @return ~integer The offset it is found at (false: not found)
*/
function strripos(string $haystack, string $needle)

