run php script from command line with variable
I want to run a php script from the command line, but I also want to set a variable for that script ie.

Browser version: script.php?var=3

Command line: php -f script.php (but how do I give it the variable?)

PS. doesn't matter if it's a GET variable or not, I just used that as an example.
run php script from command line with variable
===

I want to run a php script from the command line, but I also want to set a variable for that script ie.

Browser version: script.php?var=3

Command line: php -f script.php (but how do I give it the variable?)

PS. doesn't matter if it's a GET variable or not, I just used that as an example.