To write a PHP command line script, you will need PHP installed on your Mac, Windows, or Linux machine, a terminal command line tool like Bash, and a text editor like Sublime.
<?php
tag to the very beginning of the new file.$text = "Hello World!";
echo $text;
hello.php
. Be sure you know where the file is saved so
that you can find it in your command line terminal.php hello.php
and then hitting the
enter
or return
key.If you did everything correctly, you should see Hello World!
in the command
line of your terminal.
<?php
$text = "Hello World!";
echo $text;
In this book, PHP developers will learn everything they need to know to start building their applications on Docker, including:
You can buy this book on Leanpub today.