Name
print_r
Synopsis
mixed print_r(mixedvalue
[, boolreturn
])
Outputs value
in a human-readable
manner. If value
is a string, integer, or
float, the value itself is output; if it is an array, the keys and
elements are shown; and if it is an object, the keys and values for
the object are displayed. This function returns true
. If return
is set to true
, then the output is
returned rather than displayed.
Get Programming PHP, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.