News:

Please note these forums are mostly a testing ground for my SMF work and I don't really use them otherwise.

Main Menu

PasteBin - 1178118090

Started by Guest, May 02, 2007, 03:01 PM

Previous topic - Next topic

0 Members and 6 Guests are viewing this topic.

SleePy

// To Replace all character in a string other than alphabets or numbers with a space.
 $string="#la@ve!sh %Ra&wa*t-";
 echo $string;
 $string=trim( ereg_replace( "[^[:space:]a-zA-Z0-9]", " ", $string ) );
 echo 'After change'.'--->';
 echo $string;                                        
?>
No siggy! :D