PHP 8.3.4 Released!

Strings

  • Introdução
  • Instalação/Configuração
  • Constantes pré-definidas
  • Funções de String
    • addcslashes — Quote string with slashes in a C style
    • addslashes — Adiciona barras a uma string
    • bin2hex — Converte um dado binário em representação hexadecimal
    • chop — Sinônimo de rtrim
    • chr — Generate a single-byte string from a number
    • chunk_split — Divide uma string em pedaços menores
    • convert_cyr_string — Converte de um conjunto de caracteres cirílico para outro
    • convert_uudecode — Decodifica uma string codificada com uuencode
    • convert_uuencode — Codifica uma string com uuencode
    • count_chars — Return information about characters used in a string
    • crc32 — Calcula polinômio crc32 de uma string
    • crypt — One-way string hashing
    • echo — Output one or more strings
    • explode — Split a string by a string
    • fprintf — Escreve uma string formatada para um fluxo
    • get_html_translation_table — Returns the translation table used by htmlspecialchars and htmlentities
    • hebrev — Convert logical Hebrew text to visual text
    • hebrevc — Convert logical Hebrew text to visual text with newline conversion
    • hex2bin — Decodifica uma string binária codificada em hexadecimal
    • html_entity_decode — Convert HTML entities to their corresponding characters
    • htmlentities — Convert all applicable characters to HTML entities
    • htmlspecialchars_decode — Convert special HTML entities back to characters
    • htmlspecialchars — Convert special characters to HTML entities
    • implode — Join array elements with a string
    • join — Sinônimo de implode
    • lcfirst — Torna minúsculo o primeiro caractere de uma string
    • levenshtein — Calculate Levenshtein distance between two strings
    • localeconv — Get numeric formatting information
    • ltrim — Retira espaços em branco (ou outros caracteres) do início de uma string
    • md5_file — Calculates the md5 hash of a given file
    • md5 — Calculate the md5 hash of a string
    • metaphone — Calculate the metaphone key of a string
    • money_format — Formata um número como uma string de moeda
    • nl_langinfo — Query language and locale information
    • nl2br — Inserts HTML line breaks before all newlines in a string
    • number_format — Format a number with grouped thousands
    • ord — Converte o primeiro byte de uma string para um valor entre 0 e 255
    • parse_str — Converte a string em variáveis
    • print — Mostra uma string
    • printf — Output a formatted string
    • quoted_printable_decode — Converte uma string Quoted-Printable para uma string de 8 bits
    • quoted_printable_encode — Converte uma string de 8 bits para uma string Quoted-Printable
    • quotemeta — Quote meta characters
    • rtrim — Retira espaço em branco (ou outros caracteres) do final de uma string
    • setlocale — Set locale information
    • sha1_file — Calcula a hash sha1 de um arquivo
    • sha1 — Calculate the sha1 hash of a string
    • similar_text — Calcula a similaridade entre duas strings
    • soundex — Calcula a chave soundex de uma string
    • sprintf — Return a formatted string
    • sscanf — Interpreta a entrada de uma string de acordo com um formato
    • str_contains — Determina se uma string contém uma substring fornecida
    • str_decrement — Decrement an alphanumeric string
    • str_ends_with — Verifica se uma string termina com uma substring fornecida
    • str_getcsv — Analisa uma string CSV e retorna os dados em um array
    • str_increment — Increment an alphanumeric string
    • str_ireplace — Case-insensitive version of str_replace
    • str_pad — Pad a string to a certain length with another string
    • str_repeat — Repete uma string
    • str_replace — Substitui todas as ocorrências da string de pesquisa com a string de substituição
    • str_rot13 — Executa a transformação rot13 em uma string
    • str_shuffle — Embaralha uma string aleatoriamente
    • str_split — Convert a string to an array
    • str_starts_with — Verifica se uma string começa com uma substring fornecida
    • str_word_count — Retorna informação sobre palavras usadas em uma string
    • strcasecmp — Binary safe case-insensitive string comparison
    • strchr — Sinônimo de strstr
    • strcmp — Binary safe string comparison
    • strcoll — Locale based string comparison
    • strcspn — Encontra o tamanho do segmento inicial que não corresponde à máscara
    • strip_tags — Retira as tags HTML e PHP de uma string
    • stripcslashes — Remove o escape de strings escapadas com addcslashes
    • stripos — Find the position of the first occurrence of a case-insensitive substring in a string
    • stripslashes — Desfaz os escapes de uma string escapada
    • stristr — Case-insensitive strstr
    • strlen — Retorna o tamanho de uma string
    • strnatcasecmp — Comparação de strings insensível a maiúsculas/minúsculas usando o algoritmo de "ordem natural"
    • strnatcmp — String comparisons using a "natural order" algorithm
    • strncasecmp — Comparação binária de strings, insensível a maiúsculas/minúsculas, dos primeiros n caracteres
    • strncmp — Binary safe string comparison of the first n characters
    • strpbrk — Procura na string por um dos caracteres de um conjunto
    • strpos — Find the position of the first occurrence of a substring in a string
    • strrchr — Find the last occurrence of a character in a string
    • strrev — Reverte uma string
    • strripos — Find the position of the last occurrence of a case-insensitive substring in a string
    • strrpos — Find the position of the last occurrence of a substring in a string
    • strspn — Encontra o comprimento do segmento inicial de uma string composta totalmente de caracteres contidos em uma máscara informada
    • strstr — Find the first occurrence of a string
    • strtok — Tokenize string
    • strtolower — Converte uma string para minúsculas
    • strtoupper — Make a string uppercase
    • strtr — Translate characters or replace substrings
    • substr_compare — Comparação binária de duas strings a partir de uma posição até n caracteres
    • substr_count — Conta o número de ocorrências de uma substring
    • substr_replace — Substitui o texto dentro de uma parte de uma string
    • substr — Retorna parte de uma string
    • trim — Retira espaço (ou outros caracteres) do início e do final de uma string
    • ucfirst — Make a string's first character uppercase
    • ucwords — Converte para maiúsculas o primeiro caractere de cada palavra
    • utf8_decode — Converts a string from UTF-8 to ISO-8859-1, replacing invalid or unrepresentable characters
    • utf8_encode — Converts a string from ISO-8859-1 to UTF-8
    • vfprintf — Escreve uma string formatada para um fluxo
    • vprintf — Output a formatted string
    • vsprintf — Return a formatted string
    • wordwrap — Quebra uma string em um dado número de caracteres
  • Registro de Alterações
add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top