Gen. partnerAlgotech

PHP funkce compact()

Create array containing variables and their values

|
11. září 2019

Dostupnost ve verzích: PHP 4.0

Create array containing variables and their values

Parametry

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.

Další zdroje

Oficiální dokumentace funkce compact

Načítání komentářů...

Zůstaňte v obraze

Přihlaste se k odběru našeho newsletteru a získejte nejnovější informace o kybernetické bezpečnosti přímo do vaší e-mailové schránky.

Vaše údaje jsou v bezpečí. Newsletter můžete kdykoliv odhlásit.