PHP 8.4.0 RC3 available for testing

mb_ucfirst

(PHP 8 >= 8.4.0)

mb_ucfirstMake a string's first character uppercase

Descrição

mb_ucfirst(string $string, string $encoding = null): string

Performs a multi-byte safe ucfirst() operation, and returns a string with the first character of string capitalized, if that character is an ASCII character in the range from "a" (0x61) to "z" (0x7a).

Parâmetros

string
The input string.
encoding
The string encoding.

Valor Retornado

Returns the resulting string.

Veja Também

  • mb_lcfirst() - Make a string's first character lowercase
  • mb_convert_case() - Realiza a conversão de caixa em uma string
  • ucfirst() - Transforma o primeiro caractere de uma string em maiúsculo
adicione uma nota

Notas Enviadas por Usuários (em inglês)

Não há notas de usuários para esta página.
To Top