PHP FILTER_VALIDATE_FLOAT 过滤器
PHP 教程
· 2019-01-25 22:44:16
定义和用法
FILTER_VALIDATE_FLOAT 过滤器把值作为浮点数来验证。
- Name: "float"
- ID-number: 259
实例
<?php $var=12.3; var_dump(filter_var($var, FILTER_VALIDATE_FLOAT)); ?>
代码的输出如下所示:
float(12.3)
点击查看所有 PHP 教程 文章: https://codercto.com/courses/l/5.html
The Nature of Code
Daniel Shiffman / The Nature of Code / 2012-12-13 / GBP 19.95
How can we capture the unpredictable evolutionary and emergent properties of nature in software? How can understanding the mathematical principles behind our physical world help us to create digital w......一起来看看 《The Nature of Code》 这本书的介绍吧!