Skip to content

Instantly share code, notes, and snippets.

@jameshibbard
Last active December 15, 2015 23:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jameshibbard/5344470 to your computer and use it in GitHub Desktop.
Save jameshibbard/5344470 to your computer and use it in GitHub Desktop.
PHP script for siple unit converter
<?php
$amount = $_POST['amount'];
$from = $_POST['from'];
$into = $_POST['into'];
$step = $from - $into;
echo pow((2),$step*10)*$amount;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment