RE: [PHP] need to change $ char in string

2002-07-01 Thread Uli B
;information from a database (MySQL), not defining it using single quotes >like in your example? > >Bev > > >-Original Message----- >From: Uli B [mailto:[EMAIL PROTECTED]] >Sent: Saturday, June 29, 2002 11:56 AM >To: PHP List >Subject: Re: [PHP] need to change $ char in string

RE: [PHP] need to change $ char in string

2002-07-01 Thread Beverly Steiner
Jason, Thank you, explode using single quotes and no backslashes works! Bev -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: Monday, July 01, 2002 10:57 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] need to change $ char in string On Monday 01 July 2002 22:47

Re: [PHP] need to change $ char in string

2002-07-01 Thread Jason Wong
On Monday 01 July 2002 22:47, Beverly Steiner wrote: > Uli & others, > > Thanx for the suggestions. This works as stated but the data already > exists in this format from an old database and I'm trying to parse it into > logical fields. Originally the data in the field looked something like > 1$

RE: [PHP] need to change $ char in string

2002-07-01 Thread Beverly Steiner
hange the $ to something else if I'm getting the information from a database (MySQL), not defining it using single quotes like in your example? Bev -Original Message- From: Uli B [mailto:[EMAIL PROTECTED]] Sent: Saturday, June 29, 2002 11:56 AM To: PHP List Subject: Re: [PHP] need to

Re: [PHP] need to change $ char in string

2002-06-29 Thread hugh danaher
try double \\ to escape the special characters used by php for variables and what not. I think I read it here on a previous post. Hope this helps Hugh - Original Message - From: "Beverly Steiner" <[EMAIL PROTECTED]> To: "PHP List" <[EMAIL PROTECTED]> Sent: Saturday, June 29, 2002 7:58 AM

Re: [PHP] need to change $ char in string

2002-06-29 Thread Paul Roberts
works for me on win2k - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, June 29, 2002 6:43 PM Subject: Re: [PHP] need to change $ char in string On Sunday 30 June 2002 01:24, Beverly Steiner wrote: > Thanx

Re: [PHP] need to change $ char in string

2002-06-29 Thread Jason Wong
On Sunday 30 June 2002 01:24, Beverly Steiner wrote: > Thanx for your suggestion but I tried it and it didn't work. I'm not sure > if it matters, but this running on NT. Not sure whether NT has anything to do with it but it works for me :-) If you can't get the following code to work then you

RE: [PHP] need to change $ char in string

2002-06-29 Thread Beverly Steiner
Jason, Thanx for your suggestion but I tried it and it didn't work. I'm not sure if it matters, but this running on NT. Bev -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: Saturday, June 29, 2002 12:05 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] need

Re: [PHP] need to change $ char in string

2002-06-29 Thread Jason Wong
On Saturday 29 June 2002 22:58, Beverly Steiner wrote: > I've tried everything I can think of to change a dallar sign in a string to > something else or to split the string on the $ but I can't the the > information that comes after the $. > > Typical string contains: 1.2$General/ms1.zip > > when

Re: [PHP] need to change $ char in string

2002-06-29 Thread Uli B
use single quotes: double quotes would confuse php with variable names. it thinks that $General is a variable and replace it by it's empty content. single quotes prevent php from evaluating the string: $test_string = '1.2$General/ms1.zip'; single quotes on regex too (same reason). the backslash