<html>
<head>
<title>My First PHP Program</title>
</head>
<body>
<h1>
<?php
echo "Welcome to webdesigncr3ator.Learn PHP with me;";
echo "Welcome to webdesigncr3ator.Learn PHP with me;";
?>
</h1>
</body>
</html>
</html>
Output:
Welcome to webdesigncr3ator.com
See this Program:
Here you see php quotaion as it is given <?php......... ?>
If you don't close a php quotation with ?> then it shows T_String errors.
Again here use "echo". PHP uses it as to print someting. Although you can use "print " command for it.
No comments:
Post a Comment