I am working on a command line php file, and I tried to use func_get_args(); but I have got a warning message:
Called from the global scope – no function context in C:\wamp\www\index.php , and it doesn’t work.
Does anybody has an idea to resolve this problem?
You are probably looking for the arguments you pass with the cli call
func_get_args()pulls the arguments given to a function/method (thats what the leadingfuncmeans).