- trim: documentation ( source)
- preg_replace: documentation ( source)
- iconv: documentation ( source)
<?php
$txt = 'Frequentiéregelaar 0.37 Kw. 240V ingang - IP:20 - Bouwgrootte : 1 ';
$txt = preg_replace('/\p{M}/u', '', $txt);
$txt = preg_replace("/[^A-Za-z0-9]/", '-', trim($txt));
$txt = preg_replace('!\--+!', '-', $txt);
echo $txt;
echo '<br />';
$test = "élloo";
echo iconv('UTF8', 'ASCII//TRANSLIT', $test);