diff --git a/functions/var.xml b/functions/var.xml index d035cc3e14..340de86e66 100644 --- a/functions/var.xml +++ b/functions/var.xml @@ -423,6 +423,42 @@ echo isset($a); // false + + + print_r + + Prints human-readable information about a variable. + + + + Description + + void 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. + + + + +<?php +$a = array (1, 2, array ("a", "b", "c")); +print_r ($a); +?> + + + + + @@ -533,7 +569,7 @@ sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil -sgml-default-dtd-file:"../manual.ced" +sgml-default-dtd-file:"../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil