<?php $text = 'El méu tëst'; $text = preg_replace('~[^ \\pL\d]+~u', '-', $text); var_dump( $text );
You have javascript disabled. You will not be able to edit any code.