The comments are ignored, except the characters that initiate the actual comment.I have always had the opinion that the more comments you put into php scripts, the slower they will run because there is more data to be read... Can someone tell me if there is any truth in this or whether commenting has absolutely 'no' impact on the performance of a script?
//some comment
$somevar="va";
"some comment" wouldn't even be looked at. PHP sees the //, and goes to the next line.
I suppose on a large scale this could reduce performance, but the performance that is lost in standard applications is minuscule.
One thing you might want to avoid is using comments inside loops.
--
Kyle Gibson
admin(at)frozenonline.com
http://www.frozenonline.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php