nazonohito51/var-utils

1.0.1 2019-06-10 06:34 UTC

README

Usage

$city  = "San Francisco";
$state = "CA";
$event = "SIGGRAPH";

$location_vars = array("city", "state");

// compatible: compact("event", "nothing_here", $location_vars);
$result = Vars::compact(get_defined_vars(), "event", "nothing_here", $location_vars);
print_r($result);

/*
Array
(
    [event] => SIGGRAPH
    [city] => San Francisco
    [state] => CA
)
*/