Skip to content

Instantly share code, notes, and snippets.

@nghiatv
Created December 9, 2015 04:25
Show Gist options
  • Save nghiatv/cbff1c8906267bd11e8c to your computer and use it in GitHub Desktop.
Save nghiatv/cbff1c8906267bd11e8c to your computer and use it in GitHub Desktop.

Revisions

  1. nghiatv created this gist Dec 9, 2015.
    8 changes: 8 additions & 0 deletions index.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    <?php
    function can(float $num, int $lvl): float{
    $lvl = 1/$lvl;
    $num = pow($num, $lvl);
    return $num;
    }
    echo can(27, 5);
    ?>