Re: [PHP4BETA] Asking for the impossible?
| From: | Andrei Zmievski | Date: | Fri, 24 Mar 2000 14:06:05 +0000 |
| Subject: | Re: [PHP4BETA] Asking for the impossible? | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-12561@lists.php.net to get a copy of this message | ||
On Thu, 23 Mar 2000, Peter Kocks wrote:
> // A here doc
> print <<< END
> <HTML>
> Status: $cart->show()
> Count: $cart->count
> </HTML>
> END;
>
> I' like the output to be:
>
> Status: I'm an empty cart
> Count: 1
>
> However, the $cart->show() is embedded in a string, or in this case a here
> doc, and so I get the output:
>
> Status:
> Count: 1
>
> Any ideas?
print <<< END
<HTML>
Status: {$cart->show()}
Count: {$cart->count}
</HTML>
END;
-Andrei
* Change is the only constant. *