Fw: [PHP4BETA] Interpretation of variables inside quotes

From: Date: Fri, 14 Apr 2000 17:09:27 +0000
Subject: Fw: [PHP4BETA] Interpretation of variables inside quotes
Groups: php.version4 
Request: Send a blank email to php-version4+get-13564@lists.php.net to get a copy of this message
> This little prog : > $u[0] = "uval0" ; $u[1] = "uval1" ; > $t[0][0] = "val00" ; $t[0][1] = "val01" ; > $t[1][0] = "val10" ; $t[1][1] = "val11" ; > echo " -$t[0][1]- <br>" ; > echo " -".$t[0][1]."- <br>" ; > echo " -$u[1]- <br>" ; > > produces this : > -Array[1]- > -val01- > -uval1- > > I would expect the two first lines to be identical, of course ... Is this a > bug ?, a feature ? > It seems that arrays are correctly interpreted inside quotes if they have > only one dimension. Yes.. the same happened in PHP3.. try better echo " -". $st[0][1] ." " and by the way .. i think that there is the same *problem* when echoing a variable of an object Greetings sergio

« previous php.version4 (#13564) next »