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

How can I find my php version?

0 Answers  


Sir, I want sbi clearical post model question paper please sent my mail id srinivas_33000@ahoo.co.in

0 Answers   State Bank Of India SBI,


How to delete a file from the system?

0 Answers  


Tell me how would you declare a function that receives one parameter name hello?

0 Answers  


What is whitespace in html?

0 Answers  


Explain the difference between php4 and php5.

0 Answers  


How many ways are there for passing variables between pages in PHP and what are they ?

10 Answers  


Can you define an argument as a reference type?

0 Answers  


Will a comparison of an integer 12 and a string "13" work in php?

0 Answers  


How to find current date and time?

0 Answers  


What is the most common http method?

0 Answers  


What is the function used to change the root directory in PHP?

0 Answers  


Categories