From feca5a2ab6832522cc3c103590e54af341796ed4 Mon Sep 17 00:00:00 2001 From: Jake Smith Date: Tue, 10 Jul 2012 11:51:38 -0500 Subject: [PATCH] Add information on PHP interactive shell. --- _posts/03-05-01-Command-Line-Interface.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/_posts/03-05-01-Command-Line-Interface.md b/_posts/03-05-01-Command-Line-Interface.md index 23ff3f0..2ab6df0 100644 --- a/_posts/03-05-01-Command-Line-Interface.md +++ b/_posts/03-05-01-Command-Line-Interface.md @@ -14,7 +14,9 @@ Try running PHP from your command line: > php -i {% endhighlight %} -The `-i` option will print your PHP configuration just like the [`phpinfo`][phpinfo] function. There are a number of other useful [command line options][cli-options], too. +The `-i` option will print your PHP configuration just like the [`phpinfo`][phpinfo] function. + +The `-a` option provides an interactive shell, similar to ruby's IRB or python's interactive shell. There are a number of other useful [command line options][cli-options], too. Let's write a simple "Hello, $name" CLI program. To try it out, create a file named `hello.php`, as below.