- var_dump: documentation ( source)
- strpos: documentation ( source)
- str_replace: documentation ( source)
- html_entity_decode: documentation ( source)
<?php
//
$str='online shop';
var_dump(strpos(str_replace("\xc2\xa0", ' ', html_entity_decode($str)), 'online shop'));