|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9066 problem printing array
Submitted: 2001-02-02 02:08 UTC Modified: 2001-02-22 10:48 UTC
From: ken at iondesign dot ca Assigned:
Status: Not a bug Package: Class/Object related
PHP Version: 4.0.4pl1 OS: redhat 7
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: ken at iondesign dot ca
New email:
PHP Version: OS:


 [2001-02-02 02:08 UTC] ken at iondesign dot ca
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.



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-22 10:48 UTC]
Use "{$this->variable[0]}"

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jul 21 22:01:28 2024 UTC