PHP » GoLang |
login |
register |
about
|
floatval(PHP 4 >= 4.2.0, PHP 5, PHP 7) floatval — Get float value of a variable Parameters
Return ValuesThe float value of the given variable. Empty arrays return 0, non-empty arrays return 1. Strings will most likely return 0 although this depends on the leftmost characters of the string. The common rules of float casting apply. Examples
Example #1 floatval() Example
<?php
Example #2 floatval() non-numeric leftmost characters Example
<?php See Also
|
more
Recently updated
more
Most requested
more
Last requests
|