<?php $num1=10 $num2=50; function number(){ global $num1,$num2; return $num1+$num2; } echo number(); ?>