xref: /PHP-8.2/ext/filter/tests/051.phpt (revision 74859783)
1--TEST--
2filter_var() and default values
3--EXTENSIONS--
4filter
5--FILE--
6<?php
7$tmp = $default = 321;
8var_dump(filter_var("123asd", FILTER_VALIDATE_INT, array("options"=>array("default"=>$default))));
9?>
10--EXPECT--
11int(321)
12