How Can We Help?

Basic Usage

This is an example of a simple PHP program. The program output is:

This is a simple PHP program!

<?php
$txt = " simple PHP program";
echo "This is a $txt!";
?>

Comments in the Code

PHP comments

<?php
// a single line comment
# another single line comment
/*
Multi-line comments
go here.
*/
?>
Table of Contents