PHP Syntax

Back to ACP page

Table of Contents

Basic PHP Syntax

A PHP script can be placed anywhere in the document.

A PHP script starts with :

<h4>phpSyntax</h4> <p>A PHP script can be placed anywhere in the document. </p> <?php // PHP code goes here ?>

Example 1

Result View Example

PHP Syntax Case Sensitivitys

Lorem ipsum dolor sit, amet consectetur adipisicing elit. Odio porro similique eveniet tenetur voluptas at? Perferendis sunt temporibus fuga in?

<h4>phpSyntax-Case_Sensitivity</h4> <?php // ECHO is the same as echo: ECHO "Hello World!<br>"; echo "Hello World!<br>"; EcHo "Hello World!<br>"; ?> <h4>However; all variable names are case-sensitive!</h4> <p></p> <?php // $COLOR is not same as $color: $color = "red"; echo "My car is " . $color . "<br>"; echo "My house is " . $COLOR . "<br>"; echo "My boat is " . $coLOR . "<br>"; ?>

Example 2

Result View Example

Document

Document in project

You can Download PDF file.

Reference