Inspectopedia Help

'str*()' calls can be replaced with PHP 8 'str_*()' calls

Reports the strpos and substr functions calls that can be replaced with the str_* functions calls (introduced in PHP 8.0).

See str_contains ( and str_starts_with and str_ends_with functions ( for details.

Inspection Details

By default bundled with:

PhpStorm 2024.1, Qodana for PHP 2024.1,

Can be installed with plugin:


Last modified: 12 March 2024