floatval

PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8
floatval - Get float value of a variable
Manual
Code Examples

Example #1 floatval Example

PHP Version:

Example #2 floatval non-numeric leftmost characters Example

PHP Version:


Function floatval:

Variable handling Functions

Most used PHP functions