php-general | 2005051
Date: 05/09/05
- Next message: Victor Saldaña D.: "Re: [PHP] text with $"
- Previous message: The Doctor: "Re: [PHP] Question about acessing databases and formatting output"
- In reply to: Martín Marqués: "[PHP] text with $"
- Next in thread: Mikey: "RE: [PHP] text with $"
- Reply: Mikey: "RE: [PHP] text with $"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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';
Andy
-- Registered Linux User Number 379093 -- --BEGIN GEEK CODE BLOCK----- Version: 3.1 GAT/O/>E$ d-(---)>+ s:(+)>: a--(-)>? C++++$(+++) UL++++>++++$ P-(+)>++ L+++>++++$ E---(-)@ W+++>+++$ !N@ o? !K? W--(---) !O !M- V-- PS++(+++) PE--(-) Y+ PGP++(+++) t+(++) 5-- X++ R*(+)@ !tv b-() DI(+) D+(+++) G(+) e>++++$@ h++(*) r-->++ y--()>++++ -- ---END GEEK CODE BLOCK------ -- Check out these few php utilities that I released under the GPL2 and that are meant for use with a php cli binary: http://www.vlaamse-kern.com/sas/ ----
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Victor Saldaña D.: "Re: [PHP] text with $"
- Previous message: The Doctor: "Re: [PHP] Question about acessing databases and formatting output"
- In reply to: Martín Marqués: "[PHP] text with $"
- Next in thread: Mikey: "RE: [PHP] text with $"
- Reply: Mikey: "RE: [PHP] text with $"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

