|
Home
iRate! IceMelon IM Tutorials Headlines CoolSites PHP Functions |
Most Referenced Functions » google_pagerank() » preg_replace() » imagecreatefrompng() » site_pageranks() » imagepng() » imagedestroy() » imagestring() » imagecolorallocate() » htmlentities() » fopen() » preg_match() » header() » getimagesize() » htmlspecialchars() » ob_start() » session_start() » strstr() » ob_flush() » preg_match_all() » strpos() » setcookie() » flush() » str_replace() » array2vars() » nl2br() » preg_split() » ereg() » urlencode() » ereg_replace() » readgzfile() Become a sponsor for $15/month. Link is sitewide - PR5 homepage, 20+ PR4 pages, 90+ PR3 pages. Email dave[AT]icemelon[D0T]c0m. |
PHP Functions
Function: iconv (PHP 4 >= 4.0.5, PHP 5) iconv -- Convert string to requested character encodingDescriptionstring iconv ( string in_charset, string out_charset, string str )Performs a character set conversion on the string str from in_charset to out_charset . Returns the converted string or FALSE on failure. If you append the string //TRANSLIT to out_charset transliteration is activated. This means that when a character can't be represented in the target charset, it can be approximated through one or several similarly looking characters. If you append the string //IGNORE , characters that cannot be represented in the target charset are silently discarded. Otherwise, str is cut from the first illegal character.
Example 1. iconv() example: <?php echo iconv("ISO-8859-1", "UTF-8", "This is a test."); ?> |