print_rPHP ManualPrevNextprint_rprint_r --
Prints human-readable information about a variable.
Descriptionvoid print_r(mixed expression);
This function displays information about the values of variables
in a way that's readable by humans. If given a string, integer
or double, the value itself will be printed. If given an array,
values will be presented in a format that shows keys and
elements. Similar notation is used for objects.
Compare print_r() to
var_dump().
1
2 <?php
3 $a = array (1, 2, array ("a", "b", "c"));
4 print_r ($a);
5 ?>
6
PrevHomeNextissetUpsettype
Wyszukiwarka