Skip to content

Instantly share code, notes, and snippets.

@jazzdan
Created April 26, 2015 16:25
Show Gist options
  • Save jazzdan/2197810f39c08c04b887 to your computer and use it in GitHub Desktop.
Save jazzdan/2197810f39c08c04b887 to your computer and use it in GitHub Desktop.
<?php
declare(strict_types=1);
function add(float $a, float $b): float {
return $a + $b;
}
echo add(1, 2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment