Manuál PHP | ||
---|---|---|
Předcházející | Další |
var_dump
Popis
void var_dump ( mixed expression [, mixed expression [, ...]] )This function displays structured information about one or more expressions that includes its type and value. Arrays and objects are explored recursively with values indented to show structure.
In PHP 5 all public, private and protected properties of objects will be returned in the output.
Tip: Jako pro cokoliv, co posílá své výsledky přímo do prohlížeče, můžete použít funkce pro řízení výstupu k zachycení výstupu této funkce a jeho uložení - například - do řetězce (string).
Příklady