Printing sub objects/2 dimensional arrays

From: Date: Fri, 24 Nov 2000 18:17:56 +0000
Subject: Printing sub objects/2 dimensional arrays
Groups: php.general 
Request: Send a blank email to php-general+get-26975@lists.php.net to get a copy of this message
Hi! Printing a lot sub objects is very exhausting because you have to append all objects doing print $foo->bar->foobar." is foo<BR>\n and ".$foo->bar->xyz." also<BR>\n"; Isn't there a possibility to use only print "$foo->bar->foobar is foo<BR>\n and $foo->bar->xyz also<BR>\n"; PHP will output Object->foobar is foo and Object->xyz also The same problem using 2dimensional arrays print "$foo[bar][xyz] and the string goes on.."; regards Folke

« previous php.general (#26975) next »