Hello, I have this snippet
while($row = mysql_fetch_array($result)){
$search = '' . $row['searchquery'];
echo '<a href="http://www.example.com/' . preg_replace( array('/[^\s\w]/','/\s/'),array('','+'),$search) . '+/">' ...
but if someone types in äöü, it doesnt show the letters - with rawurlencode thats possible, but I want to remove the blank spaces with pregreplace and replace it with +
is that possible?