Tell more about PHP file?

Tell more about PHP file?

In PHP file we may contain text, HTML tags and scripts.It returned to the browser in form of plain HTML code.We can save PHP file using these three extension .php,.php3 or .phtml. 

An Example of PHP file are given below:

<html>
<head><title>PHPExample</title></head>
<body>
<h1><?php echo \"Welcome in PHP world\"; ?></h1>
<?php
$txt = \"This is my first PHP script\";
/* statement */
echo $txt;
?>
</body>
</html>

By:Vivek
Date:2009-01-09 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related PHP SUB Links

PHP SUB interview questions and answers for experienced and fresher