From 03083e6a6633a433d4269d7c24b7be0bd546ebc6 Mon Sep 17 00:00:00 2001 From: Chris Wright Date: Thu, 12 Dec 2013 16:32:23 +0000 Subject: [PATCH] Add floatval() example for non-numeric strings --- Provided by Mark T (mxtracks@gmail.com) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@332352 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/var/functions/floatval.xml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/reference/var/functions/floatval.xml b/reference/var/functions/floatval.xml index c118835837..3db4d10ce3 100644 --- a/reference/var/functions/floatval.xml +++ b/reference/var/functions/floatval.xml @@ -57,6 +57,20 @@ $var = '122.34343The'; $float_value_of_var = floatval($var); echo $float_value_of_var; // 122.34343 ?> +]]> + + + + + + <function>floatval</function> non-numeric leftmost characters Example + + ]]>