WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDES  |  PHP CLASSES  |  CODE SEARCH  |  ARTICLES SEARCH  |  PHP FORUMS  |  PHP MANUAL  |  PHP FUNCTIONS LIST  |  WEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Submit Your Code
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
WeberDev's Monthly code contest PHP Code Contest
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Index
Web Development Resources
Web Development Content
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
Mobile Dev World
Returns an array of all supported encodings

mb_list_encodings

(PHP 5)

mb_list_encodingsReturns an array of all supported encodings

Description

array mb_list_encodings ( void )

Returns an array containing all supported encodings.

Parameters

This function has no parameters.

Return Values

Returns a numerically indexed array.

Errors/Exceptions

This function does not emit any errors.

Examples

Example #1 mb_list_encodings() example

<?php

print_r
(mb_list_encodings());

?>

The above example will output something similar to:

 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 ) 


Stepping through a numbered array with each() and list()
Categories : PHP, Arrays
A list of known port numbers
Categories : Network
This is a script that list all image files on a given directory, and displays the thumbnails nicely formated within an HTML table. It also make use of JavScript to open pop up windows when the users want to see the full photo.
Categories : Graphics, PHP, Complete Programs, Java Script



This script will return all of the information in every table listed in $myarray, and will return lists of field names and information for each item,
Categories : PHP, MS Access, Databases
DropDownListBox - just little example to make live easier
Categories : PHP, HTML and PHP
Class for processing image (resizing the image size to create thumb nails and small images from actual image without loosing the aspect ratio of the image)
Categories : PHP, PHP Classes, Graphics
Scramble Eggs - php class to scramble/encode
Categories : PHP, PHP Classes, Security, Encryption
Validating Credit Card Numbers Without Bank Involvement
Categories : Credit Cards, Ecommerce, Java Script
PHP Random rss feeds - selects 49 random feeds from an unlimited list and displays them on your website. It's Ideal for those moments when you got 5 minutes and dont know which one of your feeds to read.
Categories : PHP, Rich Site Summary (RSS), Arrays
Counting the number of words in user-supplied text
Categories : PHP, Strings
Linked comboboxes with php-mysql & javascript
Categories : PHP, Java Script, Databases, MySQL
Credit Card Numbers for testing
Categories : Credit Cards, Ecommerce, Debugging
RESUABLE dynamic Drop down date, month(both numeric and month name) and year list.
Categories : PHP, Date Time
Format US phone number version 2. Rewritten to have an invalid statement output, and to include a extension number, up to four digets.
Categories : PHP, Regexps