How is it possible to return a value from a function?



How is it possible to return a value from a function?..

Answer / Abhishek Saxena

In PHP, a function returns a value using the 'return' keyword. The execution of a function stops at the point where 'return' is encountered, and the control goes back to the place where the function was called. The value specified after 'return' will be returned.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

How to use http headers inside php?

1 Answers  


How to remove html tags from data in php?

1 Answers  


Hello I m 1.5 exp, i want code : ms word to Html in php,retrieve the words in ms word in to dispaly browser in (same format,alignment). pls help me everybody Regards selva

0 Answers  


why we used type-pool SLIS in ALVs? how many types of windows in scripts?

0 Answers   IBM,


How to write in a file in php?

1 Answers  


Why should I learn php?

1 Answers  


Is php still in demand?

1 Answers  


What is the role of php?

1 Answers  


How to swap two variables without using 3rd temp variable.

1 Answers  


What are the difference between abstract class and interface in oops?

1 Answers  


What is composer used for?

1 Answers  


What is the capacity of mysql database?

1 Answers  


Categories