> -----Original Message-----
> From: Brandon Orther [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 30, 2001 3:46 PM
> To: PHP User Group
> Subject: [PHP] Making sure a variable doesn't contain a comma
>
>
> Does anyone know how I can check a variable for a comma and
> remove it if it does have one?
One way would be
$variablewithnocommas=str_replace(",","",$variable);
---
Mark Roedel | "A wise man once told me that everything in
Systems Programmer | life is either a lesson or a joke. Our task
LeTourneau University | is to figure out which is which..."
Longview, Texas, USA | -- Chris Savage
--
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]