Php | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Php

how to call php function within php function? can it be possible!!?

17th Mar 2017, 6:35 AM
Rakshith Shetty
Rakshith Shetty - avatar
2 Answers
+ 1
You can set function to public (but it works without) and use inside another. Just be sure to have return inside the function to include. function foo($value){ return $value; } function bar(){ return foo('something'); }
17th Mar 2017, 6:39 AM
Victor GS
Victor GS - avatar
0
thanks victor but function bar() is not called inside foo() right!?
17th Mar 2017, 7:59 AM
Rakshith Shetty
Rakshith Shetty - avatar