Файловый менеджер - Редактировать - /home/wuectly/www/03cbe/ucfirst.php.tar
Назад
home/wuectly/www/libraries/vendor/joomla/string/src/phputf8/ucfirst.php 0000604 00000001327 15245757412 0022444 0 ustar 00 <?php /** * @package utf8 */ //--------------------------------------------------------------- /** * UTF-8 aware alternative to ucfirst * Make a string's first character uppercase * Note: requires utf8_strtoupper * @param string * @return string with first character as upper case (if applicable) * @see http://www.php.net/ucfirst * @see utf8_strtoupper * @package utf8 */ function utf8_ucfirst($str){ switch ( utf8_strlen($str) ) { case 0: return ''; break; case 1: return utf8_strtoupper($str); break; default: preg_match('/^(.{1})(.*)$/us', $str, $matches); return utf8_strtoupper($matches[1]).$matches[2]; break; } } home/wuectly/www/libraries/phputf8/ucfirst.php 0000604 00000000604 15246014220 0015546 0 ustar 00 <?php defined('_JEXEC') or die; if (class_exists('JLog')) { JLog::add( sprintf( 'Using the phputf8 library through files located in %1$s is deprecated, load the files from %2$s instead.', __DIR__, JPATH_LIBRARIES . '/vendor/joomla/string/src/phputf8' ), JLog::WARNING, 'deprecated' ); } require_once JPATH_LIBRARIES . '/vendor/joomla/string/src/phputf8/ucfirst.php';
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка