strtr Questions
8
Solved
What I want to do is to remove all accents and umlauts from a string, turning "lärm" into "larm" or "andré" into "andre". What I tried to do was to utf8_decode the string and then use strtr on it, ...
Teamster asked 1/10, 2008 at 15:32
4
Solved
Does anyone have a multibyte variant of the strtr() function?
Example of desired usage:
Example:
$from = 'ľľščťžýáíŕďňäô'; // these chars are in UTF-8
$to = 'llsctzyairdnao';
// input - in UTF-8
...
Rabe asked 3/5, 2010 at 14:30
5
Solved
5
Solved
Right now I am using this function for emoticons:
function emoticons($text) {
$icons = array(
':)' => '<img src="/images/blank.gif" alt="smile" class="icon_smile" />',
':-)' => '<...
2
Solved
I'm looking for a UTF-8 compatible strtr for PHP.
4
Solved
I'm having a hard time understanding when strtr would be preferable to str_replace or vice versa. It seems that it's possible to achieve the exact same results using either function, although the o...
Nahum asked 18/11, 2011 at 3:13
1
© 2022 - 2024 — McMap. All rights reserved.