PHP funkce print_r()
06. 07. 2020Dostupnost ve verzích: PHP 4.0
Prints human-readable information about a variable
Parametry
Parametr | Datový typ | Výchozí hodnota | Poznámka |
---|---|---|---|
$expression | mixed | The expression to be printed. | |
$return | bool | null | If you would like to capture the output of print_r, use the return parameter. If this parameter is set to true, print_r will return its output, instead of printing it (which it does by default). |
Návratové hodnoty
mixed
If given a string, integer or float, 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.
Další zdroje
https://php.net/manual/en/function.print-r.php
Jan Barášek Více o autorovi
Autor článku podniká jako fullstack senior developer v Praze. Spravuje 300 různě velkých webových projektů, fungujících dodnes. Během spolupráce nabral hluboké zkušenosti, které na tomto webu předává dál.
Rád vám pomůžu:
Kontakt Konzultace a služby Nabídka spolupráce