PHP compact() function

Create an array from variables and their values

Example -

compact ( mixed $varname1 [, mixed $... ] ) : array