Table of Contents
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
?>
Result View Example
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>";
?>
Result View Example
Document in project
You can Download PDF file.