Skip to content

Instantly share code, notes, and snippets.

@kellegous
Created August 5, 2016 17:21
Show Gist options
  • Save kellegous/4f54126f7ce441b1a19b74761fd442bf to your computer and use it in GitHub Desktop.
Save kellegous/4f54126f7ce441b1a19b74761fd442bf to your computer and use it in GitHub Desktop.
$v = ((float) $v > (int) $v) ? (float) $v : (int) $v;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment