im trying to use preg_replace to output the following situations. only letters only numbers only letters and numbers only letters numbers periods and commas
im trying also trim all white spaces, i guess i can use trim() unless there is a way i can use regex to trim all down in one function.
so far i got only numbers down preg_replace("#[^0-9]#i",' ',$var)
____________________________________________________________ Hotel Italy | Apartments Italy
|