#3. PHP Code Structure

  1.  Php code Syntax

<?php

    code 

?>

Note: 

after code, file saves Filename.php 

2. Php code Syntax in HTML Tags  

<html>

    <head>

        <title></title>

    <head>

        <body>

<?php

    code 

?> 

        <body>

 </html>

 Now Run the Code

<?php

echo "Hello Aqib";

?>

O/P 

Hello Aqib

 

 Now Run the Code In HTML

<html>

    <head>

        <title></title>

    <head>

        <body>

<?php

    echo "Hello Aqib" ;

?> 

        <body>

 </html>

 O/P 

Hello Aqib

 

Comments

Popular posts from this blog

#30. PHP Recursive Function