PHP Print Statement

echo and print statements are used in php for output

The differences between echo and print are :

print return 1 while echo has no return value

echo is faster than print.

echo can take multiple parameters while print can take one parameters

PHP Comment

In computer language comment is a line that is not executed by the system program.

These lines exists only for to be read by programmer who is looking at the code.

Comments used for to understand what developers are doing.

Comments are remind developer of what they were thinking when they wrote the code

Two type comment in PHP :

Single line Comment :

// Example of single line comment

Multiple lines Comment
/* Example of Multiple line comment */

/* is a complete web tutorial

author : Dharmender
Purpose: Multiline Comments Example in PHP

Leave a Reply

Your email address will not be published. Required fields are marked *