1
0
mirror of https://github.com/php/php-src.git synced 2026-03-27 01:32:22 +01:00
Files
archived-php-src/ext/standard/tests/strings/chr_basic.phpt
Gabriel Caruso ded3d984c6 Use EXPECT instead of EXPECTF when possible
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
2018-02-20 21:53:48 +01:00

24 lines
457 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===
--EXPECT--
*** Testing chr() : basic functionality ***
Hello
World
===DONE===