Although not a vital part of PHP, comments can be very useful for organizing your code and helping you remember small bits about certain peices of code in your script. It’s hard to explain what comments are in any other way than saying that comments are comments. Rather than trying to explain, I’ve coded an example below.

<?php
// this is my script 
$variable = "hi"; // this variable is equal to 'hi'
// this is the end of my script 
?>

As you can see, comments simply allow you to leave little notes in your code which get ignored by the PHP parser. They do not affect the PHP code itself, but makes it easier to organize code and such. You can add comments anywhere in your code by simply adding two forward slashes followed by your comment. Examples can be seen in the above code.