February 2013
Intermediate to advanced
538 pages
20h 55m
English
compact
array compact(mixedvariable1[, ... mixedvariableN])
Creates an array by retrieving the values of the variables named
in the parameters. If any of the parameters are arrays, the values of
variables named in the arrays are also retrieved. The array returned
is an associative array, with the keys being the arguments provided to
the function and the values being the values of the named variables.
This function is the opposite of extract().
Read now
Unlock full access