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:
parent
67abc2c1ea
commit
719fd84654
@ -6,6 +6,11 @@ if (!function_exists('_')) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!function_exists('floatval')) {
|
||||||
|
function floatval($string) {
|
||||||
|
return ((float) $string);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* functions... */
|
/* functions... */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user