4 min read
Your First PHP Script
Prerequisites: Installing PHP
Create a file named hello.php:
<?php
echo "Hello, world!";
Run it from the command line:
php hello.php
Practice
Change the script to print your own name instead of "Hello, world!".
Show solution
<?php
echo "Ada";