Retox
Новичок
Всем привет!
Парни посоветутй как удалить символ "’"
Ex. text wouldn’t text
делал
1.
$str="text wouldn’t text";
$str = str_replace("’","",$str);
$str = str_replace(Chr(226),"",$str);
//
2.
$str="text wouldn’t text";
$str = conv ($str);
function conv ($str)
{
$tr = array("’"=>"");
return strtr($str,$tr);
}
//
3. с конвертированием
$str="text wouldn’t text";
$str = iconv("UTF-8", "CP1251", $str);
$str = str_replace(Chr(226),"",$str);
echo $str;
Парни посоветутй как удалить символ "’"
Ex. text wouldn’t text
делал
1.
$str="text wouldn’t text";
$str = str_replace("’","",$str);
$str = str_replace(Chr(226),"",$str);
//
2.
$str="text wouldn’t text";
$str = conv ($str);
function conv ($str)
{
$tr = array("’"=>"");
return strtr($str,$tr);
}
//
3. с конвертированием
$str="text wouldn’t text";
$str = iconv("UTF-8", "CP1251", $str);
$str = str_replace(Chr(226),"",$str);
echo $str;