php global variables

wbhrevaktrc122

New Member
I have a global variable $config, now i have a class and i want to use a value from config as a default argument for a class method like function f(var=$config['val']){} will this assignment work?
 
Back
Top