SpiceQA
Questions
Tags
Users
Badges
Can't set argument default value to a global variable?
user_878763
0
Created Aug 4, 2011
Edited Aug 4, 2011
Viewed 2824
Follow
Why can't I do that?
function ($var1, $var2 = $GLOBALS['var']){ ... }
the global 'var' is a object
variables
php
10
0
Add comment
+
Share
2 Answers
Related