Which of the following way is correct to comment a single line of code in php?

Options
- //Commented line
- #commented line
- ;commented line
- both a and b


CORRECT ANSWER : //Commented line

Discussion Board
Foult doofe

It was and with me. Let''s discuss this question. Here or in PM.


avenue 04-9-2024 03:53 PM

Kavice gob

The authoritative point of view, cognitively..


avenue18 10-24-2022 02:50 PM

php

hii

amit 01-17-2019 04:30 AM

php comment line

# is also a single line comment. as in perl

amir 06-15-2015 02:43 AM

PHP

# is also a single line comment.

venkat 06-12-2015 05:32 AM

Read the manual

http://php.net/manual/en/language.basic-syntax.comments.php - this is the source of information. Look at the first example and return the "d" answer back please.

Dunkel 05-21-2015 06:37 PM

Single line code in php

Answer : //Commented line.

In php, single line comment is done using //Commented line (double slash)



Jayesh Sonar 02-10-2015 02:04 AM

info about change the answer

this question right answer only a beacuse # is a pre processer function and using only include but // commented.

so i hope u consider my option and change this question

Amit kumar sharma 11-20-2014 06:08 AM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement