You are here: Re: [PHP] text with $ « PHP « IT news, forums, messages
Re: [PHP] text with $

Posted by Brent Baisley on 05/09/05 18:10

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, 2005, at 8:23 AM, 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?
>
> --
> 09:21:28 up 37 days, 17:45, 1 user, load average: 2.54, 2.04, 1.50
> -----------------------------------------------------------------
> Martín Marqués | select 'mmarques' || '@' || 'unl.edu.ar'
> Centro de Telematica | DBA, Programador, Administrador
> Universidad Nacional
> del Litoral
> -----------------------------------------------------------------
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
--
Brent Baisley
Systems Architect
Landover Associates, Inc.
Search & Advisory Services for Advanced Technology Environments
p: 212.759.6400/800.759.0577

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация