1--TEST-- 2Test mb_decode_mimeheader() function : variation 3--SKIPIF-- 4<?php 5extension_loaded('mbstring') or die('skip'); 6function_exists('mb_decode_mimeheader') or die("skip mb_decode_mimeheader() is not available in this build"); 7?> 8--FILE-- 9<?php 10echo "*** Testing mb_decode_mimeheader() : variation ***\n"; 11mb_internal_encoding('iso-8859-7'); 12 13//greek in UTF-8 to be converted to iso-8859-7 14$encoded_word = "=?UTF-8?B?zrHOss6zzrTOtc62zrfOuM65zrrOu868zr3Ovs6/z4DPgc+Dz4TPhc+Gz4fPiM+J?="; 15var_dump(bin2hex(mb_decode_mimeheader($encoded_word))); 16 17 18?> 19--EXPECT-- 20*** Testing mb_decode_mimeheader() : variation *** 21string(48) "e1e2e3e4e5e6e7e8e9eaebecedeeeff0f1f3f4f5f6f7f8f9" 22