Is it possible to do something like this:
Class::function('some_text') = 'aaaaa';
And get this 'aaaaa' string inside the Class::function() ?
Is it possible to do something like this:
Class::function('some_text') = 'aaaaa';
And get this 'aaaaa' string inside the Class::function() ?
With your case it seems like you're searching for a solution like this?
Session::Set(array("key" => "value"));
class Session {
public static function Set($kvp) {
foreach ($kvp as $key => $value) {
echo $key . " is " . $value . "<br />";
}
}
}