I have a function without arguments and want to get arguments name and value from variable when call function
$name = "ali";
$family = "smith";
function info(){
print_r(func_get_args);
}
info($name,$family); //array("name"=>"ali","family"=>"smith")
But in this case get me numeric keys array with values I don't want use compact function and read this link but args_with_keys not correct work and get me numeric array