Skip to content

Instantly share code, notes, and snippets.

@jesse1981
Created June 10, 2013 05:10
Show Gist options
  • Save jesse1981/5746668 to your computer and use it in GitHub Desktop.
Save jesse1981/5746668 to your computer and use it in GitHub Desktop.
Number inverse
<?php
function inverse($num,$max) {
for ($i=0;$i<=$max;$i++) {
if ($num == ($max-$i)) return $i;
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment