Re: One other question re: cli
| From: | Aziz Saleh | Date: | Mon, 15 Jan 2018 02:33:54 +0000 |
| Subject: | Re: One other question re: cli | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-326355@lists.php.net to get a copy of this message | ||
On Sun, Jan 14, 2018 at 9:29 PM, Jeffry Killen <jekillen@prodigy.net> wrote:
> Hi again;
> Where would I find manual info re passing arguments from
> command line to a php cli script?
>
> Is there something like "include(stdin)" necessary, and how
> would I refer to the arg?
>
> Thanks for time and attention;
> Jeff K
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Couple of options:
http://php.net/manual/en/function.getopt.php
(which I prefer)
or old fashion way:
http://php.net/manual/en/reserved.variables.argv.php