ConFoo 2025

recode_string

(PHP 4, PHP 5, PHP 7 < 7.4.0)

recode_stringRecode a string according to a recode request

Descripción

recode_string(string $request, string $string): string

Recode the string string according to the recode request request.

Parámetros

request

The desired recode request type

string

The string to be recoded

Valores devueltos

Returns the recoded string or false, if unable to perform the recode request.

Ejemplos

Ejemplo #1 Basic recode_string() example

<?php
echo recode_string("us..flat", "The following character has a diacritical mark: á");
?>

Notas

A simple recode request may be "lat1..iso646-de".

Ver también

  • The GNU Recode documentation of your installation for detailed instructions about recode requests.
  • mb_convert_encoding() - Convierte una codificación de caracteres
  • UConverter::transcode() - Convertir un string de un juego de caracteres a otro
  • iconv() - Convierte un string a la codificación de caracteres indicada

add a note

User Contributed Notes

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