Annotation of embedaddon/php/ext/standard/tests/general_functions/005.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: is_scalar() function test
3: --FILE--
4: <?php
5: class foo {}
6: var_dump (is_scalar (TRUE));
7: var_dump (is_scalar (1));
8: var_dump (is_scalar (1.0));
9: var_dump (is_scalar ("Hi!"));
10: var_dump (is_scalar (NULL));
11: var_dump (is_scalar (array ()));
12: var_dump (is_scalar (new foo()));
13: var_dump (is_scalar (opendir('.')));
14: ?>
15: --EXPECT--
16: bool(true)
17: bool(true)
18: bool(true)
19: bool(true)
20: bool(false)
21: bool(false)
22: bool(false)
23: bool(false)
24:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>