/hphp/test/zend/good/ext/standard/tests/strings/strtoupper.php
PHP | 11 lines | 7 code | 0 blank | 4 comment | 0 complexity | 1ea116b88eb2ae763dc989183b2fdd48 MD5 | raw file
Possible License(s): LGPL-2.1, BSD-2-Clause, BSD-3-Clause, MPL-2.0-no-copyleft-exception, MIT, LGPL-2.0, Apache-2.0
- <?hh
- <<__EntryPoint>>
- function main_entry(): void {
- $chars = "äöü";
- // Not sure which is most portable. BSD's answer to
- // this one. A small array based on PHP_OS should
- // cover a majority of systems and makes the problem
- // of locales transparent for the end user.
- setlocale(LC_CTYPE, "de_DE", "de", "german", "ge", "de_DE.ISO8859-1", "ISO8859-1");
- echo strtoupper($chars)."\n";
- }