note 105729 modified in features.commandline.interactive by danbrown
| From: | danbrown@php.net | Date: | Sat, 10 Sep 2011 14:50:08 +0000 |
| Subject: | note 105729 modified in features.commandline.interactive by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-183074@lists.php.net to get a copy of this message | ||
In Windows, press Enter after your ending PHP tag and then hit Ctrl-Z to denote the end-of-file:
C:\>php -a
Interactive mode enabled
<?php
echo "Hello, world!";
?>
^Z
Hello, world!
You can use the up and down arrows in interactive mode to recall previous code you ran.
--was--
In Windows, press Enter after your ending PHP tag and then hit Ctrl-Z to denote the end-of-file:
C:\>php -a
Interactive mode enabled
<?php
echo "Hello, world!";
?>
^Z
Hello, world!
As another user mentioned, you can use the up and down arrows in interactive mode to recall previous
code you ran.
http://php.net/manual/en/features.commandline.interactive.php