Affected page
https://www.php.net/manual/en/function.mb-strpos.php
Current issue
It is unclear from the documentation whether mb_strpos returns a byte offset or a char offset. It returns a char offset:
var_dump(mb_strpos("πHπΓ©", "Γ©")); // => 3
var_dump(mb_strpos("πHπΓ©", "π", 1)); // => 2
Suggested improvement
An example can be enough, wording can be improved too as "numeric position" does not indicate how is this position interpreted (in my opinion). I cannot think of a great wording yet.
Additional context (optional)
No response
Affected page
https://www.php.net/manual/en/function.mb-strpos.php
Current issue
It is unclear from the documentation whether
mb_strposreturns abyteoffset or acharoffset. It returns acharoffset:Suggested improvement
An example can be enough, wording can be improved too as "numeric position" does not indicate how is this position interpreted (in my opinion). I cannot think of a great wording yet.
Additional context (optional)
No response