note 36618 rejected from function.echo by vincent
| From: | vincent@php.net | Date: | Thu, 16 Oct 2003 15:15:52 +0000 |
| Subject: | note 36618 rejected from function.echo by vincent | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-58698@lists.php.net to get a copy of this message | ||
Note Submitter: kelvinlaw@net-yan.com
----
ECHO here document problem
i don't know why the following code is not work ('name is a variable from
POST action)
echo <<<END
$_POST['name']
END;
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting
T_STRING or T_VARIABLE or T_NUM_STRING in /X/www/html/ex04.php on line 3 (
$_POST['name'])
however
echo <<<END
$_POST
END;
is work(as i think), output is 'Array'
could you help me to debug it?