<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Returns an array of all supported encodings</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.mb-language.html">mb_language</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.mb-output-handler.html">mb_output_handler</a></div> <div class="up"><a href="ref.mbstring.html">Multibyte String Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="function.mb-list-encodings" class="refentry"> <div class="refnamediv"> <h1 class="refname">mb_list_encodings</h1> <p class="verinfo">(PHP 5)</p><p class="refpurpose"><span class="refname">mb_list_encodings</span> — <span class="dc-title">Returns an array of all supported encodings</span></p> </div> <div class="refsect1 description" id="refsect1-function.mb-list-encodings-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">array</span> <span class="methodname"><strong>mb_list_encodings</strong></span> ( <span class="methodparam">void</span> )</div> <p class="para rdfs-comment"> Returns an array containing all supported encodings. </p> </div> <div class="refsect1 parameters" id="refsect1-function.mb-list-encodings-parameters"> <h3 class="title">Parameters</h3> <p class="para">This function has no parameters.</p> </div> <div class="refsect1 returnvalues" id="refsect1-function.mb-list-encodings-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns a numerically indexed array. </p> </div> <div class="refsect1 errors" id="refsect1-function.mb-list-encodings-errors"> <h3 class="title">Errors/Exceptions</h3> <p class="para"> This function does not emit any errors. </p> </div> <div class="refsect1 examples" id="refsect1-function.mb-list-encodings-examples"> <h3 class="title">Examples</h3> <p class="para"> <div class="example" id="example-2715"> <p><strong>Example #1 <span class="function"><strong>mb_list_encodings()</strong></span> example</strong></p> <div class="example-contents"> <div class="phpcode"><code><span style="color: #000000"> <span style="color: #0000BB"><?php<br /><br />print_r</span><span style="color: #007700">(</span><span style="color: #0000BB">mb_list_encodings</span><span style="color: #007700">());<br /><br /></span><span style="color: #0000BB">?></span> </span> </code></div> </div> <div class="example-contents"><p>The above example will output something similar to:</p></div> <div class="example-contents screen"> <div class="cdata"><pre> Array ( [0] => pass [1] => auto [2] => wchar [3] => byte2be [4] => byte2le [5] => byte4be [6] => byte4le [7] => BASE64 [8] => UUENCODE [9] => HTML-ENTITIES [10] => Quoted-Printable [11] => 7bit [12] => 8bit [13] => UCS-4 [14] => UCS-4BE [15] => UCS-4LE [16] => UCS-2 [17] => UCS-2BE [18] => UCS-2LE [19] => UTF-32 [20] => UTF-32BE [21] => UTF-32LE [22] => UTF-16 [23] => UTF-16BE [24] => UTF-16LE [25] => UTF-8 [26] => UTF-7 [27] => UTF7-IMAP [28] => ASCII [29] => EUC-JP [30] => SJIS [31] => eucJP-win [32] => SJIS-win [33] => JIS [34] => ISO-2022-JP [35] => Windows-1252 [36] => ISO-8859-1 [37] => ISO-8859-2 [38] => ISO-8859-3 [39] => ISO-8859-4 [40] => ISO-8859-5 [41] => ISO-8859-6 [42] => ISO-8859-7 [43] => ISO-8859-8 [44] => ISO-8859-9 [45] => ISO-8859-10 [46] => ISO-8859-13 [47] => ISO-8859-14 [48] => ISO-8859-15 [49] => EUC-CN [50] => CP936 [51] => HZ [52] => EUC-TW [53] => BIG-5 [54] => EUC-KR [55] => UHC [56] => ISO-2022-KR [57] => Windows-1251 [58] => CP866 [59] => KOI8-R ) </pre></div> </div> </div> </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.mb-language.html">mb_language</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.mb-output-handler.html">mb_output_handler</a></div> <div class="up"><a href="ref.mbstring.html">Multibyte String Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>