Added optional floatval function for PHP < 4.2.0

git-svn-id: http://svn.automattic.com/wordpress/trunk@310 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
emc3 2003-08-14 15:13:20 +00:00
parent c32fb874c7
commit 3bb338ca93
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... */