- var_dump: documentation ( source)
- trim: documentation ( source)
- preg_replace: 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";
var_dump(preg_replace('/\p{M}/u', '', Normalizer::normalize($test, Normalizer::FORM_D)));