In any programming language it may be php, java, html or any other programming language, commenting is the most basic requirement to optimize your code for future use.Comments in between your code not only make this snippet understandable to you but also may help others to understand your code .If after an year you needs to edit in your code then only comments can give you the same thinking as you had when you code this before an year.
Comments are very good practice during your code it can reduce your maintenance efforts. Php supports mainly two type of comments.
Comments are very good practice during your code it can reduce your maintenance efforts. Php supports mainly two type of comments.
- Single Line Comment
- Multi line comment More