Skip to content

Instantly share code, notes, and snippets.

@adamtester
Created July 20, 2015 09:44
Show Gist options
  • Save adamtester/637b9d34bf9824d2190a to your computer and use it in GitHub Desktop.
Save adamtester/637b9d34bf9824d2190a to your computer and use it in GitHub Desktop.
Code for the levelling system for Vevvu Platform
function getLevels($cEXP) {
for($i = 1; ($i * $i + 2) * $i <= $cEXP; $i++);
return $i;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment