Simple Program in PHP - PHP Syntex of a Program, How to write a simple Program in PHP


Simple Program in PHP - PHP Syntex of a Program, How to write a simple Program in PHP

There are two ways to work with PHP one is to write PHP scripts into <?php ------some code-----?> and second is <? -----some code----?> .
I am suggest you to use the first one because the second one is not supported all scripts so lets come to how to write a simple program in PHP.

<html>
<head>
<title>Simple Program in PHP</title>
</head>
<body>
<?php
echo "Welcome to the World of PHP";
?>
</body>
</html>

the PHP script can be placed any where into our program like i am using it into the body section. It depends on your requirement.


{ 0 comments... read them below or add one }

Post a Comment