From 719fd846547fe4681599b7331f4be1a9ce82f5f6 Mon Sep 17 00:00:00 2001 From: Dougal Campbell Date: Thu, 14 Aug 2003 15:13:20 +0000 Subject: [PATCH] Added optional floatval function for PHP < 4.2.0 git-svn-id: https://develop.svn.wordpress.org/trunk@310 602fd350-edb4-49c9-b593-d223f7449a82 --- b2-include/b2functions.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/b2-include/b2functions.php b/b2-include/b2functions.php index f73c6ad362..57829e8da0 100644 --- a/b2-include/b2functions.php +++ b/b2-include/b2functions.php @@ -6,6 +6,11 @@ if (!function_exists('_')) { } } +if (!function_exists('floatval')) { + function floatval($string) { + return ((float) $string); + } +} /* functions... */