Code Snippets → PHP → Comments in PHP Comments in PHP Chris Coyier on Oct 22, 2009 <?php /* This code by Chris Coyier */ $i = 0; // counter to be used later; ?> Comments in PHP can be between /* */ markings (useful for multiple line comments) or after // markings (for single lines only).
Have you tried the other type of comments? you use the # sign and they work like // comments.
# like this
Can you help me with a small text based counter script ? It says something like permission error.
I think its best to avoid using the multiline version for short blocks if you can.
The reason is that they don’t nest well. So if you use, “/asterisk A comment asterisk/”
function and latter comment out the function with “/asterisk asterisk/”. You wont get what you want.
/*This is a comment */
We can also use hashes (#) for comment
I have a question, how about these lines
<!-- Start -->,
<!-- End -->
can I use this kind on annotation in
phpfiles or this actually is considered a
phpcommand line? Thanks,
Thats only for Html Files ;)