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
> > 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
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,
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
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?
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: \
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
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?
>
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
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
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
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
-
12 matches
Mail list logo