Introduction to PHP – 2


  1. // This is single line comment.
  2. # This is also Single line comment.
  3. /* This we can use for multiple lines as we are using in other languages. */

CaSe SeNsItIvItY

In PHP, all keywords (like echo,while,else,if,etc), classes, functions, and user-defined functions are NOT case-sensitive Look Below:

<!DOCTYPE html>

function display() {

echo “hello world!”;
ECHO “<p>Welcome to our wordpress site!</p>”; #both are same echo inbuilt function.


diSPLAY(); // call the function


So, you can see that function display is different as compare to when we are calling it.

Wait! What’s the “function” in above example?

In PHP to define function the syntax is :

function function_name(){


again you can write FUNCTION/ Function all these are same.


Author: kanu_lp

Teck Geek guy... Bands Obsessed.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s