On Tue, 20 Jul 2004 00:31:19 -0400, Jason Barnett [EMAIL PROTECTED] wrote:
I was working on something else tonight when I literally stumbled across another
solution that works here... pick your poison:
?php
$heredoc = XML
?xml version=1.0 encoding=iso-8859-1 ?
root
node attribute=I am
On Mon, 19 Jul 2004 10:22:42 -0700, barophobia [EMAIL PROTECTED] wrote:
hello.
?php
define(MY_CONSTANT, http://google.com/;);
$my_string = QQQ
MY_CONSTANT: does not work for obvious reasons
{MY_CONSTANT}: does not work for obvious reasons
{$MY_CONSTANT}: does not work for obvious
On Mon, 19 Jul 2004 11:48:02 -0700, Justin Patrin [EMAIL PROTECTED] wrote:
On Mon, 19 Jul 2004 10:22:42 -0700, barophobia [EMAIL PROTECTED] wrote:
$my_string = QQQ
MY_CONSTANT: does not work for obvious reasons
{MY_CONSTANT}: does not work for obvious reasons
{$MY_CONSTANT}: does not
Yes, I know. You can't use defined constants within a normal string,
so it won't work in a heredoc either:
define('FOO', 'bar');
echo show me FOO;
You have to use:
echo 'show me '.FOO;
On Mon, 19 Jul 2004 12:05:40 -0700, barophobia [EMAIL PROTECTED] wrote:
On Mon, 19 Jul 2004 11:48:02 -0700,
I was working on something else tonight when I literally stumbled across another
solution that works here... pick your poison:
?php
$heredoc = XML
?xml version=1.0 encoding=iso-8859-1 ?
root
node attribute=I am an attribute
textI am a text node./text
/node
dynamic
5 matches
Mail list logo