nazonohito51/var-utils

var utils

Installs: 15

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/nazonohito51/var-utils

1.0.1 2019-06-10 06:34 UTC

This package is auto-updated.

Last update: 2025-09-10 20:58:04 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
)
*/