Re: Ridiculous ..won't print or echo ...(RESOLVED)
| From: | Ondr(ej S(ibr(ina | Date: | Fri, 31 Jul 2009 08:21:11 +0000 |
| Subject: | Re: Ridiculous ..won't print or echo ...(RESOLVED) | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-296094@lists.php.net to get a copy of this message | ||
Just testing message
Miller, Terion napsal(a):
> Yep I forgot about escaping the $
>
>
>
> On 7/29/09 10:51 AM, "Ford, Mike" <M.Ford@leedsmet.ac.uk> wrote:
>
>> -----Original Message-----
>> From: Miller, Terion [mailto:tmiller@springfi.gannett.com]
>> Sent: 29 July 2009 16:36
>>
>> Ok in my output to Quark I need to have $P printed to the page like
>> this:
>>
>> <@$p>2118 S. Campbell Ave
>>
>> So in my php which is going to be grabbing this info and formatting
>> it for
>> the Quark....isn't echoing that "$p" all I get is the <@>
>>
>> I have tried several things:
>>
>> $p = $p
>>
>> $p = print("$p")
>
> "$p" is trying to interpolate the value of the variable $p -- if you had full error
> reporting turned on, you would see a nonexistent variable error. Once more, there are several things
> you can do, of which the two most obvious are:
>
> * Use single quotes: echo '$p';
>
> * Use a backslash: echo "\$p";
>
>
> Cheers!
>
> Mike
> --
> Mike Ford,
> Electronic Information Developer, Libraries and Learning Innovation,
> Leeds Metropolitan University, C507, Civic Quarter Campus,
> Woodhouse Lane, LEEDS, LS1 3HE, United Kingdom
> Email: m.ford@leedsmet.ac.uk
> Tel: +44 113 812 4730
>
>
>
>
>
> To view the terms under which this email is distributed, please go to
> http://disclaimer.leedsmet.ac.uk/email.htm
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>