RE: [PHP] Ridiculous ..won't print or echo ...
| From: | Aipok | Date: | Wed, 29 Jul 2009 15:43:30 +0000 |
| Subject: | RE: [PHP] Ridiculous ..won't print or echo ... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-296003@lists.php.net to get a copy of this message | ||
>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 = echo "$p"
>
>On and on...
>
>tried all kinds of ways to just get a $p to print to the page.....and I can
>not for some reason get a $p to print to the page...what's up with that...
>
Try with $p = '$p' to store the string $p inside the $p variable. Or, use
"echo '$p'" (without the double quotes). $p = echo "$p" makes no
sense, as
the echo function doesn't return anything, and you're trying to store the
returning result (none) into the variable $p.