Skip to content

Instantly share code, notes, and snippets.

@amrelarabi
Created November 20, 2021 21:47
Show Gist options
  • Save amrelarabi/173ec4f8d737bbc69be52fd4f597cf0b to your computer and use it in GitHub Desktop.
Save amrelarabi/173ec4f8d737bbc69be52fd4f597cf0b to your computer and use it in GitHub Desktop.
<?php
function sum(int $x, int $y) {
$z = $x + $y;
return $z;
}
$sum = sum( 5, 10 );
echo "Sum is " . $sum;
echo "Sum + 10 is " . ( $sum + 10 );
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment