I've a php function ,
func($c) {
global $a,$b;
//Do something
}
I call it like this,
$c = "Test";
func($c);
But in some cases I need to pass an extra parameter $b and it should not be overridden by the global variable value so i tried this,
func($c,$b = $b,$a = $a) {
//Do something
}
But in PHP setting variable as default is not permitted. So kindly help me here ...