Skip to main content

PHP tutorials


PHP is a server side general purpose scripting language, most widely used for developing web applications. It supports various databases namely MySQL, FbSQL, GeoIP, YAZ databases and so on.

Rasmus Lerdorf, a Greenlandic-Danish programmer created PHP in the year 1994. It is easy to learn. No prior programming language experience is required.

PHP file terminates with an extension .php .

Lets begin learning with an example,

<!DOCTYPE HTML>
<html>
    <body>
        <?php
            echo "Hello world, PHP script goes here!!";
        ?>
    </body>
</html>


Place the above piece of code in a file with an extension .php. When it gets executed, the text inside double quotes gets displayed on the terminal. In this example, PHP code begins with <?PHP and ends with ?>

PHP comments

PHP supports both single line and multi line comments that can be embedded in a .php webpage. Single line comments begin with double forward slash or single hash and multi-line comments can be embedded within special characters as shown below. Usage of comments is similar to C, C++, PERL and so on which makes easy to remember. 

<?php
    echo 'This is a test'; // This is a single-line c++ style comment

    echo 'One Final Test'; # This is a one-line unix shell-style comment
    /* This is a multi line comment
       yet another line of comment */  
?>













Popular posts from this blog

eLitmus pH test for freshers

eLitmus has became more famous in conducting pH test for the fresh graduates in India. They will evaluate candidates across India and to provide a standard benchmark against which companies can compare them.


Who can apply

Candidates having/pursuing a degree in BE/B.Tech, MCA, ME/M.Tech or M.Sc(CS/IT) can apply for the pH test.

Companies recruiting from pH test

List of companies

Look at test centers

Check the upcoming pH tests

Look at the testimonials

Read what the candidates appeared for this exam says about eLitmus.

Test Pattern

Test duration : 2 hours
No of questions : 60

It will be asked from 3 categories,

Syllabus

20 : Problem solving
20 : Verbal ( You need to read the paragraph and answer the questions )
20 : Quantitative ( Data interpretation )

Four options will be provided for each question. Test will be conducted online.

Payment methods

Fresh graduates appearing for the test has to pay Rs 920/- as a test fee.

They can pay online or send a DD or in cash at Bangalore eLitmus office.

By Online: If y…