regarding print_r()

From: Date: Sun, 10 Nov 2013 05:09:03 +0000
Subject: regarding print_r()
Groups: php.general 
Request: Send a blank email to php-general+get-322441@lists.php.net to get a copy of this message
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 (#322441) next »