PHP 8.4.24 Released!

Voting

: min(five, nine)?
(Example: nine)

The Note You're Voting On

ajitsingh4u at gmail dot com
18 years ago
/**
* Replaces special characters with single quote,double quote and comma for charset iso-8859-1
*
* replaceSpecialChars()
* @param string $str
* @return string
*/
function replaceSpecialChars($str)
{
    //`(96) ’(130) „(132) ‘(145) ’(146) “(147) ”(148) ´(180)   // equivalent ascii values of these characters.
    $str = strtr($str, "`’„‘’´", "'','''");
    $str = strtr($str, '“”', '""'); 
    return $str;
}

<< Back to user notes page

To Top