- Output for 7.3.33, 8.1.23 - 8.1.29, 8.2.10 - 8.2.23, 8.3.0 - 8.3.11
- with stripos: bool(false) with mb_stripos: int(8)
<?php
$product = ['name' => 'THIS IS À MULTIBYTE STRING'];
$search = 'à';
echo 'with stripos: '; var_dump(stripos($product['name'], $search));
echo 'with mb_stripos: '; var_dump(mb_stripos($product['name'], $search));