note 123606 added to features.commandline
| From: | sammarshall@php.net | Date: | Tue, 12 Feb 2019 16:13:54 +0000 |
| Subject: | note 123606 added to features.commandline | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-210233@lists.php.net to get a copy of this message | ||
When using the -R flag, the name of the variable containing the content of the current line (not
including the LF) is $argn.
For example you can do this code:
cat file.txt | php -R 'echo $argn . "\n";'
This will just output each line of the input file without doing anything to it.
----
Server IP: 208.43.231.9
Probable Submitter: 185.85.3.194 (proxied: 137.108.5.43)
----
Manual Page -- http://php.net/manual/en/features.commandline.php
Edit -- https://master.php.net/note/edit/123606
Del: integrated -- https://master.php.net/note/delete/123606/integrated
Del: useless -- https://master.php.net/note/delete/123606/useless
Del: bad code -- https://master.php.net/note/delete/123606/bad+code
Del: spam -- https://master.php.net/note/delete/123606/spam
Del: non-english -- https://master.php.net/note/delete/123606/non-english
Del: in docs -- https://master.php.net/note/delete/123606/in+docs
Del: other reasons-- https://master.php.net/note/delete/123606
Reject -- https://master.php.net/note/reject/123606
Search -- https://master.php.net/manage/user-notes.php