Annotation of embedaddon/php/ext/standard/tests/strings/chr_basic.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Test chr() function : basic functionality
3: --FILE--
4: <?php
5:
6: /* Prototype : string chr ( int $ascii )
7: * Description: Return a specific character
8: * Source code: ext/standard/string.c
9: */
10:
11: echo "*** Testing chr() : basic functionality ***\n";
12:
13: echo chr(72). chr(101) . chr(108) . chr(108). chr(111); // Hello
14: echo chr(10); // "\n"
15: echo "World";
16: echo "\n";
17: ?>
18: ===DONE===
19: --EXPECTF--
20: *** Testing chr() : basic functionality ***
21: Hello
22: World
23: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>