+ 1

Whats the difference between a normal statement and a comment in terms of when both are displayed.

Like in the php comments tutorial section I couldn't different between the statement and the comments.

29th Jan 2018, 5:09 PM
Chimenem
1 Respuesta
+ 1
A normal statement is executed by the php server when it reaches that line. A comment is ignored and not executed by the php server. This mode also applies in other languages. So basically, comments are ignored by the compiling programming language. You mark a line as a comment with the // - for single line comments #- for single line comments too /* */ - for multi-line comments so when it sees this, it ignores the line . I hope you understand.
29th Jan 2018, 9:15 PM
Babafemi Sorinolu
Babafemi Sorinolu - avatar