-1

I have a script, which executes by Example::main("file.csv");. I want to run the script from the terminal, but how can I achieve, so I don't define the argument in the script, but in the terminal, like php Example.php file.csv? Thanks!

sklrboy
  • 441
  • 1
  • 6
  • 15

1 Answers1

-1

Example::main($argv[1]); is the solution.

u_mulder
  • 54,101
  • 5
  • 48
  • 64
sklrboy
  • 441
  • 1
  • 6
  • 15