Re[2]: [PHP] text with $

2005-05-09 Thread Richard Davey
Hello bala, Monday, May 9, 2005, 3:51:21 PM, you wrote: >> I have a text variable that contains "$" symbols, that when I pass it out PHP >> thinks that the "$" mean that a variable name comes right after. bc> use this bc> $$text = "$text"; While I'm sure creating a variable variable is useful i

RE: [PHP] text with $

2005-05-09 Thread Mikey
> > I have a text variable that contains "$" symbols, that when > I pass it > > out PHP thinks that the "$" mean that a variable name comes > right after. > > > To include the string symbol in a variable, use the single quotes. > > $myvar='this is $$$ test'; Or, if you still want to use interp

Re: [PHP] text with $

2005-05-09 Thread Brent Baisley
Do you mean you named a variable like $varia$le? I wouldn't do that. If you mean you have something like: "A text $tring with $ome dollar$" Just put it in single quotes instead of double quotes. PHP doesn't evaluate what's inside single quotes. 'A text $tring with '.$variable.' dollar' On May 9,

Re: [PHP] text with $

2005-05-09 Thread =?iso-8859-1?q?Mart=EDn_Marqu=E9s?=
El Lun 09 May 2005 11:44, Marek Kilimajer escribió: > Martín Marqués wrote: > > I have a text variable that contains "$" symbols, that when I pass it out PHP > > thinks that the "$" mean that a variable name comes right after. > > > > I tried escaping the "$" put with no luck. > > > > Is there

Re: [PHP] text with $

2005-05-09 Thread bala chandar
hi On 5/9/05, Martín Marqués wrote: > I have a text variable that contains "$" symbols, that when I pass it out PHP > thinks that the "$" mean that a variable name comes right after. use this $$text = "$text"; > > I tried escaping the "$" put with no luck. > > Is there something I can do?

Re: [PHP] text with $

2005-05-09 Thread Marek Kilimajer
Martín Marqués wrote: I have a text variable that contains "$" symbols, that when I pass it out PHP thinks that the "$" mean that a variable name comes right after. I tried escaping the "$" put with no luck. Is there something I can do? How did you escape the symbol? You should use backslash: \

Re: [PHP] text with $

2005-05-09 Thread disguised.jedi
On 5/9/05, Martín Marqués wrote: > I have a text variable that contains "$" symbols, that when I pass it out PHP > thinks that the "$" mean that a variable name comes right after. /* This is standard behavior, as far as I know. Are you using an IDE, or just a standard text editor? Many IDEs will

Re: [PHP] text with $

2005-05-09 Thread Petar Nedyalkov
On Monday 09 May 2005 15:23, Martín Marqués wrote: > I have a text variable that contains "$" symbols, that when I pass it out > PHP thinks that the "$" mean that a variable name comes right after. > > I tried escaping the "$" put with no luck. Use single quote. > > Is there something I can do? >

Re: [PHP] text with $

2005-05-09 Thread =?ISO-8859-1?Q?Victor_Salda=F1a_D=2E?=
On 5/9/05, Martín Marqués wrote: > I have a text variable that contains "$" symbols, that when I pass it out PHP > thinks that the "$" mean that a variable name comes right after. > > I tried escaping the "$" put with no luck. > > Is there something I can do? $var = 'hi $there'; -- Victor Sal

Re: [PHP] text with $

2005-05-09 Thread Andy Pieters
On Monday 09 May 2005 14:23, Martín Marqués wrote: > I have a text variable that contains "$" symbols, that when I pass it out > PHP thinks that the "$" mean that a variable name comes right after. > To include the string symbol in a variable, use the single quotes. $myvar='this is $$$ test'; And

Re: [PHP] text with $

2005-05-09 Thread Richard Davey
Hello Martín, Monday, May 9, 2005, 1:23:45 PM, you wrote: MM> I have a text variable that contains "$" symbols, that when I pass it out PHP MM> thinks that the "$" mean that a variable name comes right after. MM> I tried escaping the "$" put with no luck. $string = "hello\$world"; Best regar

[PHP] text with $

2005-05-09 Thread Martín Marqués
I have a text variable that contains "$" symbols, that when I pass it out PHP thinks that the "$" mean that a variable name comes right after. I tried escaping the "$" put with no luck. Is there something I can do? -- 09:21:28 up 37 days, 17:45, 1 user, load average: 2.54, 2.04, 1.50 -