Annotation of embedaddon/php/ext/standard/tests/strings/strval.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: strval() function
3: --FILE--
4: <?php
5: $foo = 'bar';
6: var_dump(strval($foo));
7: define('FOO', 'BAR');
8: var_dump(strval(FOO));
9: var_dump(strval('foobar'));
10: var_dump(strval(1));
11: var_dump(strval(1.1));
12: var_dump(strval(true));
13: var_dump(strval(false));
14: var_dump(strval(array('foo')));
15: ?>
16: --EXPECT--
17: string(3) "bar"
18: string(3) "BAR"
19: string(6) "foobar"
20: string(1) "1"
21: string(3) "1.1"
22: string(1) "1"
23: string(0) ""
24: string(5) "Array"
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>