Php Interview Questions

Knowing About the Comments in PHP

As we all know that comment is considered as a line that cannot be executed in a program. Rather comments are those which are used for writing the descriptions according to one’s ease. Mainly PHP comments are used to describe any code line to make it understandable to the developer. Not only this but, this can also be used to hide any line of code.

Moreover, if you are a novice, and you are not clear about the basics of PHP language, there are several tutorials available on the internet from where you can Learn PHP Online. These tutorials will help you to understand the coding of this language and you will also get an insight into PHP comments.

Moving further, there are two types of comments

· Single line comments in PHP

· Multi-line comments in PHP

Single line comments in PHP are the type of comments that are responsible for fewer explanations. Single line comments are started with backlash (//) or #.

Multi-line comments in PHP are the type of comments that are responsible for comments in multiple lines. Using this comment in PHP, you can provide comments in a huge manner. In simple words, you can comment huge blocks of code. While commenting with multi-lines, you are supposed to add /* */ after writing the code.

Note: Browsers are not responsible for reading the comments.

Apart from these, the comments in PHP are likewise to the comments of PERL Style, C, and C++.

Besides this, a career in this field is also emerging and if you are looking for PHP Interview Questions, you can get it online. These interview questions will help you to know the answers and make yourself prepared for the frequently asked PHP interview questions by the industries.

Source url