• SQL Tutorial
  • Spring
  • PHP
  • RubyonRails
  • Servlet
  • Core Java
  • jQuery
  • Java IO
  • JavaScript

  • <

    What is PHP?

    PHP(Hypertext Preprocessor) is a open source server side scripting programming language designed for web development.It was created by Rasmus Lerdorf in 1994.

    It stands for Hypertext Pre-processor,PHP can only run PHP installed servers.Extension of PHP file is .php

    Used in various web frameworks,content management systems.

    Easy to learn syntax.It is platform independent.Popularly used in data-driven Web application.



    PHP Versions

    PHP Version 1.0(1995)

    PHP Version 2.0(1997)

    PHP Version 3.0(1998)

    PHP Version 4.0(2000)

    PHP Version 5.0(2004)

    PHP Version 7.0(2015)



    PHP Syntax



    PHP start with <? and end with ?>

    
    <?php
     //code here
     ?>
    

    You must have basic knowledge of HTML,CSS,JavaScript to better use PHP.


    PHP Hello World Example

    To create hello world in php create a file and write HTML TAGS and PHP code.


    helloworld.php
    <html>  
    <body>  
    <?php   
    echo "Hello World";
    ?>  
    </body>  
    </html>  
    

    OUTPUT:
    Hello World
    
















    © copyright 2017-2021 Completedone pvt ltd.