Whether One-line comment begin with pound sing(#) in php?

Answers were Sorted based on User's Feedback



Whether One-line comment begin with pound sing(#) in php?..

Answer / sona

Yes we can give # or // for oneline command

example

//hai
#echo "hai";

Is This Answer Correct ?    14 Yes 2 No

Whether One-line comment begin with pound sing(#) in php?..

Answer / nutan bhatnagar

There are three way to comment a code two are for single
line and one for mulitple line.

For Single line comment
// echo hello ;
# echo hello;

For Multiple line comment

/*

echo hello;
echo "Happy New Year - 2010"
*/

Is This Answer Correct ?    7 Yes 2 No

Post New Answer

More PHP Interview Questions

Is php faster than nodejs?

0 Answers  


How can you upload a file using php?

0 Answers  


Is php a programming language?

0 Answers  


How does php session work?

0 Answers  


Explain the different types of errors in php.

0 Answers  






How do I escape data before storing it into the database?

0 Answers  


How can we change the maximum size of the files to be uploaded?

0 Answers  


Is age a variable in research?

0 Answers  


Which is variable cost?

0 Answers  


Tell me what does accessing a class via :: means?

0 Answers  


What the use of var_dump()?

0 Answers  


What are the difference between abstract class and interface in oops?

0 Answers  


Categories