Goto main content

strtr

Translate characters or replace substrings.

STRTR

NAME

strtr - Translate characters or replace substrings.

SYNOPSIS

strtr(str,from,to)

PARAMETERS

str
The string being translated.
from
The string being translated to to.
to
The string replacing from.

RETURN

Returns the translated string.

EXAMPLES

in:  res=<{strtr("'aa&<>xaòăààóôðîè","òăààóôðîè","oaaaoooie")}>.
out: res='aa&<>xaoaaaoooie.

SEE ALSO

{{ include("includes/strings.sn") }}

AUTHOR

Written by Pusnei Sergey, <sergey@sednove.com>

MODIFICATIONS

1.0 2014-09-09 21:24:14 laplante@sednove.com

Edit

© 2024 extenso Inc. All rights reserved.