php.net |  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
47 - 36 = ?
Subscribe to this entry?

 
 [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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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

 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sat Jan 16 04:01:23 2021 UTC