Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

How should we add a single line comment in our PHP code?
i) /?
ii) //
iii) #
iv) /* */

How should we add a single line comment in our PHP code?
i) /?
ii) //
iii) #
iv) /* */
a) Only ii)
b) i), iii) and iv)
c) ii), iii) and iv)
d) Both ii) and iv)

Answer: c
Explanation: /* */ can also be use to comment just a single line although it is used for paragraphs. // and # are used only for single line comment.

Join The Discussion