xref: /PHP-8.3/ext/filter/tests/044.phpt (revision 74859783)
1--TEST--
2Integer validation with spaces
3--EXTENSIONS--
4filter
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