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

What is the use of hooks?

0 Answers  


What are the difference between include_once & Require_once?

2 Answers  


is 'easyphp' is compelete technology to design a phpmysql site?

3 Answers  


How are variables declared in php?

0 Answers  


How to get a total number of elements used in the array?

0 Answers  






What is mem_cache ? How do you put a database query into that ?

5 Answers   NIIT,


How many different types of messages available in php?

0 Answers  


Is php worth learning in 2019?

0 Answers  


Does php need a closing tag?

0 Answers  


What can php do?

0 Answers  


Can we extend multiple classes in php?

0 Answers  


m new to xampp i want to configure file server in xampp... is it possible ??? if so help me....

0 Answers  


Categories