|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1999-02-21 15:38 UTC] jim
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 13 21:00:01 2025 UTC |
I don?t know, if this bug was reported before, I didn?t see it in the 3.0.6 ChangeLog. This is the example script. <? class test { var $htmlhead = ARRAY( 'title' => '<TITLE>%s</TITLE>\n', 'stylesheet' => '' ); function htmlhead() { echo $this->htmlhead['title']; } } $newtest = new test; echo $newtest->htmlhead(); echo "<BR>"; ?> The result is: Warning: Variable $htmlhead is not an array or string in /www/wer-ist-wer.com/pages/aPage/test.html on line 10 If I change e.g. $htmlhead to $htmlhd it works.