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
Set/Get internal character encoding

mb_internal_encoding

(PHP 4 >= 4.0.6, PHP 5)

mb_internal_encodingSet/Get internal character encoding

Description

mixed mb_internal_encoding ([ string $encoding= mb_internal_encoding() ] )

Set/Get the internal character encoding

Parameters

encoding

encoding is the character encoding name used for the HTTP input character encoding conversion, HTTP output character encoding conversion, and the default character encoding for string functions defined by the mbstring module.

Return Values

If encoding is set, then Returns TRUE on success or FALSE on failure. If encoding is omitted, then the current character encoding name is returned.

Examples

Example #1 mb_internal_encoding() example

<?php
/* Set internal character encoding to UTF-8 */
mb_internal_encoding("UTF-8");

/* Display current internal character encoding */
echo mb_internal_encoding();
?>

Notes

Note: The internal encoding or the character encoding specified by mb_regex_encoding() will be used as the character encoding for this function.

See Also


Variable number of function args.
Categories : Variables, PHP
Prime Spiral is a image plotted with all the primes in a number spiral.
Categories : Algorithms, Graphics, GD image library, Math.
Returns the last row from a select where multiple rows have been selected. In this case it is used to determine the last number in an AUTO_INCREMENT column. I use it to create "ticket numbers" or anything that needs a unique ID in sequence.
Categories : mSQL, MySQL, Databases, PHP



How to get the 10 biggest numbers out of an INT column.
Categories : General SQL, Databases
Reverse a given number
Categories : PHP, Beginner Guides, Algorithms, Math.
PHP Thumbnail script - Generate thumbnails on the fly.
Categories : PHP, Graphics, GD image library
Reduce the number of processors on a system for testing.
Categories : WinNT
A list of known port numbers
Categories : Network
Full membership authentication system.
Categories : Authentication, MySQL, PHP, Databases
Random Number generation using PHP's GD technique (captcha).
Categories : PHP, GD image library, Graphics, Security
How to validate an Israeli ID number.
Categories : Ecommerce, PHP, Algorithms
Customizable encoding and decoding strings with security.
Categories : PHP, Strings, HTML and PHP
This is an admin utility to let you manage mysql users from a web page. It works for me.. I've fixed a number of bugs since 1.0, but it's still not very efficient code, and probably still has bugs.
Categories : Databases, MySQL, Complete Programs, PHP, Databases
color codes for positive and negative numbers
Categories : PHP, MySQL, Databases, HTML