<?php
and ends with ?>
:
<?php
//Some Content
?>
PHP files have extension ".php".
<!DOCTYPE html>
<html>
<head>
<title>PHP Syntax</title>
</head>
<body>
<h3>This is my First Program</h3>
<?php
echo " Welcome to Free Time Learning. ";
?>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>PHP Single Line Comments</title>
</head>
<body>
<?php
// Single Line Comments
# Single Line Comments
echo "<h2>FTL (www.freetimelearning.com)</h2>";
?>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>PHP Multi Line Comments</title>
</head>
<body>
<?php
/*
<h4>multi line comments</h4>
<h5>multi line comments</h5>
<h6>multi line comments</h6>
*/
echo "<h2>FTL (www.freetimelearning.com)</h2>";
?>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>PHP Case Sensitivity</title>
</head>
<body>
<h4>PHP Case Sensitivity</h4>
<?php
ECHO "Free Time Learning.<br>";
echo "Free Time Learning.<br>";
EcHo "Free Time Learning.<br>";
?>
</body>
</html>
PHP is a case-sensitive programming language. Try out the following example :
<!DOCTYPE html>
<html>
<head>
<title>PHP Case Sensitivity</title>
</head>
<body>
<h4>PHP Case Sensitivity</h4>
<?php
$ftl = "www.freetimelearning.com";
echo "My Website is : " . $ftl . "<br><br>";
echo "My Website is : " . $fTl . "<br><br>";
echo "My Website is : " . $FTL;
?>
</body>
</html>