fork(7) download
<?php

$string = "ÁÉÍÓÚáéíóú! äëïöü";
$string = iconv( "UTF-8" , "ASCII//TRANSLIT//IGNORE" , $string );
$string = preg_replace( array( '/[ ]/' , '/[^A-Za-z0-9\-]/' ) , array( '' , '' ) , $string );

echo $string;

// your code goes here
Success #stdin #stdout 0.01s 20552KB
stdin
Standard input is empty
stdout
AEIOUaeiouaeiou