php-src/ext/standard/tests/strings/ucfirst.phpt
Derick Rethans 2ffc93140d - Fixed bug in ucfirst() implementation. If the tmp_len = 0 then it will not
write the uppercased character to the buffer, but only returns the length of
  the uppercased letter as per
  http://icu.sourceforge.net/apiref/icu4c/ustring_8h.html#a50.
- Updated is_string():
  If Unicode semantics is turned on, return "true" for Unicode strings only.
  If Unicode semantics is turned off, return "true" for native strings only.
- Added is_binary() function that returns "true" for native strings only.
- Added first implementation of upgraded strtr function. It works except if
  combining sequences or surrogates are used in the non-array method of calling
  this function.
2006-03-17 14:29:05 +00:00

13 lines
155 B
PHP

--TEST--
ucfirst()
--FILE--
<?php
echo ucfirst("peren"), "\n";
echo ucfirst("appelen"), "\n";
echo ucfirst("ßen"), "\n";
?>
--EXPECT--
Peren
Appelen
SSen