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:

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

Date:2009-01-09 00:00:00

Post Your Answers

User Email:

User Name:

Related PHP SUB Links

PHP SUB interview questions and answers for experienced and fresher