RE: [PHP] Making sure a variable doesn't contain a comma

From: Date: Wed, 31 Jan 2001 01:05:22 +0000
Subject: RE: [PHP] Making sure a variable doesn't contain a comma
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-37359@lists.php.net to get a copy of this message
> -----Original Message----- > From: Brandon Orther [mailto:brandon@webintellects.com] > 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

« previous php.general (#37359) next »