note 40939 added to language.constants
| From: | NoahB at rn2 dot php dot net | Date: | Wed, 24 Mar 2004 00:02:24 +0000 |
| Subject: | note 40939 added to language.constants | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-67080@lists.php.net to get a copy of this message | ||
fmarzoa, the reason your assignment
define (strArticleDescr, 'Published by $article_author on $article_date in
$article_lang_name');
was interpreted literally is that variables are not interpreted inside single quotes. You could
use:
define (strArticleDescr, "Published by $article_author on $article_date in
$article_lang_name");
or
define (strArticleDescr, 'Published by '.$article_author.' on
'.$article_date.' in '.$article_lang_name');
and you won't need to eval it later.
----
Manual Page -- http://www.php.net/manual/en/language.constants.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+40939
Delete -- http://master.php.net/manage/user-notes.php?action=delete+40939&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+40939&report=yes
Search -- http://master.php.net/manage/user-notes.php