[phorm] [Phorm:] Re: Strip Commas

  • From: webbbs@xxxxxxxxx
  • To: support@xxxxxxxxx
  • Date: 6 May 2004 03:08:04 -0000

The following new message has been posted on Phorm Support Forum at 
<http://www.phorm.com/support/>. 

*************************************************************************** 

  MESSAGE:  (#4032) Re: Strip Commas 
            <http://www.phorm.com/support/?rev=4032> 
  AUTHOR:   Bob Brody 
  DATE:     May 5, 2004 at 11:08 p.m. EST 

  Reply To: (#4031) Strip Commas 
  Author:   Decatur 
  Date:     May 5, 2004 at 10:45 p.m. EST 

> Hello, 

> Is there a function to strip commas from fields? 

> I've tried something like: 

> $first_name = $string; 
> $string = str_replace(",", "", 
> $string); 
> $string = $first_name; 

> in the config file. 

> Is there a way to set it up so that all fields will 
> have their commas striped out? 

I don't know if you can do it so that all fields will have their commas 
stripped in one process, but on a field-by-field basis, have you tried this in 
the config: 

$first_name = ereg_replace(",", "", $first_name); 

Bob 

*************************************************************************** 

This is an automatically-generated notice.  If you'd like to be removed from 
the mailing list, please visit Phorm Support Forum at 
<http://www.phorm.com/support/>, or send your request to webbbs@xxxxxxxxxx  If 
you wish to respond to this message, please post your response directly to the 
board.  Thank you! 
-------------------------------------------------
You are receiving this message because you are subscribed to the Phorm mailing 
list. To send messages to the mailing list, simply send email to 
phorm@xxxxxxxxxxxxx from the address you have subscribed. You may unsubscribe 
from the list by sending email to phorm-request@xxxxxxxxxxxxx with 
'unsubscribe' in the SUBJECT field.

Other related posts: