Added optional floatval function for PHP < 4.2.0

git-svn-id: https://develop.svn.wordpress.org/trunk@310 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dougal Campbell 2003-08-14 15:13:20 +00:00
parent 67abc2c1ea
commit 719fd84654
1 changed files with 5 additions and 0 deletions

View File

@ -6,6 +6,11 @@ if (!function_exists('_')) {
}
}
if (!function_exists('floatval')) {
function floatval($string) {
return ((float) $string);
}
}
/* functions... */