|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-07-07 13:01 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 02:00:01 2025 UTC |
print_r ends with a newline if you print_r() an array, but not if you print_r() a string or number: $foo="abc"; $bar=123; echo "-"; print_r($foo); echo "-"; print_r($bar); echo "-"; Ouput: -abc-123- $foo=array(123, "abc"); echo "-"; print_r($foo); echo "-"; Output: -Array ( [0] => 123 [1] => abc ) -