lets say you have these functions : function sum($a,$b) { return $a+$b; } function show($text) { echo $text; } PHP: You call it like this : $val = sum(6,5); // val will contain 11 //or echo sum(6,5); // it will print 11 // or the function without a return show('here you go'); PHP: