xref: /PHP-7.4/ext/filter/tests/044.phpt (revision 782352c5)
1--TEST--
2Integer validation with spaces
3--SKIPIF--
4<?php if (!extension_loaded("filter")) die("skip"); ?>
5--INI--
6precision=14
7--FILE--
8<?php
9$vals = array(
10"
11 ",
12" ",
13" 123",
14" 123.01 ",
15);
16
17foreach ($vals as $var) {
18	var_dump(filter_var($var, FILTER_VALIDATE_FLOAT));
19}
20?>
21--EXPECT--
22bool(false)
23bool(false)
24float(123)
25float(123.01)
26