1
0
mirror of https://github.com/php/php-src.git synced 2026-03-25 16:52:18 +01:00
Files
archived-php-src/ext/standard/tests/strings/chr_basic.phpt

24 lines
458 B
PHP

--TEST--
Test chr() function : basic functionality
--FILE--
<?php
/* Prototype : string chr ( int $ascii )
* Description: Return a specific character
* Source code: ext/standard/string.c
*/
echo "*** Testing chr() : basic functionality ***\n";
echo chr(72). chr(101) . chr(108) . chr(108). chr(111); // Hello
echo chr(10); // "\n"
echo "World";
echo "\n";
?>
===DONE===
--EXPECTF--
*** Testing chr() : basic functionality ***
Hello
World
===DONE===