note 22491 modified in function.array by derick

From: Date: Thu, 17 Jun 2004 08:46:41 +0000
Subject: note 22491 modified in function.array by derick
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-71209@lists.php.net to get a copy of this message
Be careful when you try to access an instance array variable inside of double quotes (a common Perl practice). Several hours of debugging led me to conclude that this: echo( "The value: $this->someArray[1]" ) simply will not work. Make sure the array reference is outside the quotes! [red: or do: echo( "The value: {$this->someArray[1]}" ) ] --was-- Be careful when you try to access an instance array variable inside of double quotes (a common Perl practice). Several hours of debugging led me to conclude that this: echo( "The value: $this->someArray[1]" ) simply will not work. Make sure the array reference is outside the quotes! http://php.net/manual/en/function.array.php

« previous php.notes (#71209) next »