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 "echo" in php?

0 Answers  


How do I stop php artisan serve in windows?

0 Answers  


How to pass an argument to a function?

0 Answers  


How to find a specific value in an array?

0 Answers  


What is a php 5?

0 Answers  


What is the use of header() function in php?

0 Answers  


What is the difference between for and foreach loop in php?

0 Answers  


What types images that php supports?

1 Answers  


What is sorting php?

0 Answers  


How error handling is being handled by php?

0 Answers  


What are different types of Print Functions available in PHP?

0 Answers  


How can we determine whether a variable is set?

0 Answers  


Categories