Description
The following code:
<?php
var_dump(stripos('aaBBBBBbb', 'b'));
Resulted in this output:
But I expected this output instead:
This occurs when the following conditions are met:
$needle is single character
- (Number of characters from the first lowercase letter to the end) >= (Number of characters from the beginning to the first uppercase letter)
- Uppercase letters appear before lowercase letters
PHP Version
PHP8.2+
Operating System
any