Dostupnost ve verzích: PHP 4.0
Create array containing variables and their values
Parametr | Datový typ | Výchozí hodnota | Poznámka |
---|---|---|---|
$varname |
mixed |
není | compact takes a variable number of parameters. Each parameter can be either a string containing the name of the variable, or an array of variable names. The array can contain other arrays of variable names inside it; compact handles it recursively. |
$_ |
mixed |
null |
array
the output array with all the variables added to it.
Oficiální dokumentace funkce compact
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:
Články píše Jan Barášek © 2009-2025 | Kontakt | Mapa webu
Status | Aktualizováno: ... | cs