Skip to content

Instantly share code, notes, and snippets.

@bmoregeo
Created May 25, 2014 19:27
Show Gist options
  • Save bmoregeo/ef8a3e18aa090459b435 to your computer and use it in GitHub Desktop.
Save bmoregeo/ef8a3e18aa090459b435 to your computer and use it in GitHub Desktop.
php get breaks
function getBreaks($max, $min, $q){
$quant = ($max - $min) / $q;
for ($x = 0; $x <= $q; $x++){
$breakValue[$x] = $min+($quant*$x);
}
return $breakValue;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment