Re: regarding print_r()

From: Date: Sun, 10 Nov 2013 05:24:04 +0000
Subject: Re: regarding print_r()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-322442@lists.php.net to get a copy of this message
Issue resolved. I didn't notice that i was passing print_r() function to echo. Silly mistake. Thanks Sachin Raut On Sun, Nov 10, 2013 at 10:39 AM, Sachin Raut <imsachinraut@gmail.com>wrote: > Hello, > > > I am trying to print following array using print_r(), but it appends > number "1" to the output. Can someone pls tell me what is the issue here or > is there any setting i need to do in PHP. > > > Thanks > > Sachin Raut > > > <?php > > $a[]="Paris"; > > $a[]="London"; > > echo print_r($a); > > ?> > > > Output : > > Array ( [0] => Paris [1] => London ) 1 >

« previous php.general (#322442) next »