<?php

For ($counter = 0 ; $ counter <10; $ counter ++)

echo “counter is $ counter \n”;

Echo “<br>’’

?>

 

What is syntax?

 

The rules and regulations (or grammar) governing the layout and keyboard

 

COMMENTS

Comments allow you to place  remark  and note yourself inside the program source code although comment  don’t affect the way your program executes it is very important that you put comment s inside the program to make it clear. There are 2 ways to place comments in Pascal source.

* Type the comment inside curly braces {}. Any text inside these will be considered a comment and will be considered a comment and will be ignored by the compiler.

* Type the comment between the (*and*) character. Anything inside these will be also be considered a comment and ignored.

 

Comment is text added for documentation purposes ignored by the interpreter, compiler or assembler.

 

PHP Commenting Patterns

* Using one hash mark at the beginning of the statement

 

<?php

##################

#This is a comment

##################

?>

 

* Using double slash at the beginning of statement comment

 

<?php

/////////////////////////////////

//This is a comment

/////////////////////////////////

 

* This type of comments can be used on block of codes

/*this type of commenting let us comment block of codes which is very useful in debugging

[HOME]  [2]  [3]  [4]  [5]  [6]  [7]  [8]  [9]  [10]  [11]  [12]  [13]  [14]  [15]  [16]  [17]  [18]  [19]  [20]  [21]  [22]  [23]  [24]  [25]  [26]  [27]  [28]  [29] [30]  [31]  [32]  [33] 

<<[PREVIOUS]                   [NEXT]>>

 

 

www.kiddiesnet.com