Whhat is a Functions



Whhat is a Functions..

Answer / nagaraju.ch

A function is a block of statement, A function will not execute immediately when we run, we have to call the function to execute
example

<?php
function name(){          // for creating a function

     echo "My name is -----";   

}

name();                   // calling the function

Is This Answer Correct ?    4 Yes 0 No

Post New Answer

More PHP Interview Questions

How do I install php?

0 Answers  


Can we run php on tomcat server?

0 Answers  


Can I include php in javascript?

0 Answers  


Tell me how to strip whitespace (or other characters) from the beginning and end of a string?

0 Answers  


Can you explain, when to use if-else if-else over switch statements?

0 Answers  






Explain the ternary conditional operator in php?

0 Answers  


What is the function file_get_contents() useful for?

0 Answers  


"$this" what type of object it is?

2 Answers  


What are the final class and final method?

0 Answers  


How do you use an array in excel?

0 Answers  


What is difference between array_merge and array_combine?

0 Answers  


Is php still in demand?

0 Answers  


Categories