PHP Syntax

 PHP Syntax

  • Default file extension for php code is ".php".
  • .php file can have HTML tags, JavaScripts, PHP scripts. 
  • A PHP script can be placed anywhere in the page.
  • <?php code hear ?>
  •  for print or display normaly userd "echo".

Example

<html> 
      <head>
      </head>
      <body>
            <?php echo 'hello php!' ; ?>
      </body> 
</html>

Comments

Popular posts from this blog

How to set self page in form action?

Let's make a webservice in php