PHP Manual

PHP funkce print_r()

2019-09-11T08:04:03.000Z

Obsah článku

Dostupnost ve verzích: PHP 4.0

Prints human-readable information about a variable

Parametry

Parametr Datový typ Výchozí hodnota Poznámka
$expression mixed není 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).

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

Oficiální dokumentace funkce print-r

Jan Barášek   Více o autorovi

Autor článku pracuje jako seniorní vývojář a software architekt v Praze. Navrhuje a spravuje velké webové aplikace, které znáte a používáte. Od roku 2009 nabral bohaté zkušenosti, které tímto webem předává dál.

Rád vám pomůžu:

Související články

1.
182.

Potřebujete poradit s PHP?

Nabízím trénink vývojářů, konzultace, školení a analýzu návrhových vzorů. Osobně v Praze nebo online.

Napište mi, pokud si nevíte rady.

Lektor: Jan Barášek

V jiných jazycích

Status:
All systems normal.
2025