Forum PHP 2017

# Voting

 To pass more than 9 arguments to your php-script on Windows, you can use the 'shift'-command in a batch file. After using 'shift', %1 becomes %0, %2 becomes %1 and so on - so you can fetch argument 10 etc. Here's an example - hopefully ready-to-use - batch file:foo.bat:---------@echo off:init_argset args=:get_argshiftif "%0"=="" goto :finish_argset args=%args% %0goto :get_arg:finish_argset php=C:\path\to\php.exeset ini=C:\path\to\php.ini%php% -c %ini% foo.php %args%---------Usage on commandline:foo -1 -2 -3 -4 -5 -6 -7 -8 -9 -foo -barA print_r(\$argv) will give you all of the passed arguments.