Created
September 1, 2017 19:06
-
-
Save phpfiddle/2e84b97dacfcb9a898174576dee9109c to your computer and use it in GitHub Desktop.
[ Posted by Diegovieira ] xxxxxxxxxxxxxxxxxx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$n = '2.2737367544323E-13'; | |
$n = preg_replace('/[^0-9.]/', '', $n); | |
echo number_format($n, 2, '.', ''); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment