start

<?php
echo "0x1RIS\n";

The opening tag is not decoration Text outside the tags is sent straight to the client

CLI check

php -l script.php
php script.php

-l checks syntax without running the file Use it before handing anything to a web server

Comments

// and # run to end of line /* ... */ spans lines Nested block comments do not work the way you might expect

Output

echo is a language construct print returns a value Use echo for straightforward output and stop overthinking it

Next

Types and declarations in 02 variables

Posted