|
Posted by moxie19 on 06/19/06 03:09
This is great, but it takes out the spaces also, is there a way to
leave the spaces intact.
Rik wrote:
> moxie19@gmail.com wrote:
> > Also, does anybody know how to remove extra stuff from a string and
> > just leave alphabetical characters, like this:
> >
> > before: John *BigDogg* Smith!!!
> > after: John BigDogg Smith
>
> $string = preg_replace('/[^a-z]/i','',$string);
>
> Grtz,
> --
> Rik Wasmus
Navigation:
[Reply to this message]
|