compact in PHP

Syntax of compact array compact(mixed variable1[, … mixed variableN]) 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 … Read more