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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you use an array in excel?

519


What is the difference between characters 34 and x34?

539


What are the functions of string?

513


How a variable is declared in php?

504


How can you retrieve a cookie value?

535






Tell me whether it is possible to share a single instance of a memcache between multiple php projects?

532


How long does a session last in php?

507


How to make database connection in php?

528


What are the advantages of using php?

529


What is the meaning of a final class and a final method?

526


What are sql functions?

532


How to get the length of string?

561


Why do we use namespace in php?

456


What is helper library?

503


Explain what is the difference between for and foreach?

519