<!doctype html>
<html>
<head>
</head>
<body>
<?php
function distance($x,$y){
distance(10,10);
$d = $x * $y;
return $d;
echo $d; //not working
}
echo $d;
if ($d > 5){ //notworking
echo "grats";
}
?>
</body>
</html>
my code on line 14 and 11 is not working, line 11 wont output $d. line 14 wont call upon returned value $d.