Try:
ereg_replace("[^a-zA-Z]", "", $string)
Jason
--
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne IT
"Work now, freak later!"
> -----Original Message-----
> From: Jack Dempsey [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 24, 2001 9:02 AM
> To: Jay Paulson; [EMAIL PROTECTED]
> Subject: RE: [PHP] anyone have...
>
>
> would need to check, but:
>
> preg_replace("/[^a-zA-z]/",'',$data)
>
> should about do it...
>
> jack
>
> -----Original Message-----
> From: Jay Paulson [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 23, 2001 6:50 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] anyone have...
>
>
> anyone have a function that strips out all the characters in
> a string that
> are no a-z or A-Z?
>
> thanks...
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]