PHP Simple programs
Posted by Raj
Let us begin with a very simple PHP program.
Example:
hello.php
<?php
echo "Hello!!.";
?>
Output:Hello!!.
Example Using HTML and PHP
hello.php
<html>
<head><title>My First PHP Page</title></head>
<body>
<span>
<?php
$name="Rajesh";
echo "Hello $name";
?>
</span>
</body>
</html>
Output:Hello Rajesh
This entry was posted on October 4, 2009 at 12:14 pm, and is filed under
PHP,
PHP interview questions and answers,
PHP snippets tutorials scripting guide beginners,
sample examples,
sample programs,
simple programs
.You can leave a response, or trackback from your own site.