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