|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-02-02 02:08 UTC] ken at iondesign dot ca
$varibale="hello"; It is possible to echo "$variable[0]"; But if it is in a class echo "$this->variable[0]"; the result is array[0] not hello. echo $this->hello; minus quotation marks works fine. I am not sure if this is a bug or just inconsistant. Ken PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 16:00:01 2025 UTC |
Use "{$this->variable[0]}"