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
Check if the string is valid for the specified encoding

mb_check_encoding

(PHP 4 >= 4.4.3, PHP 5 >= 5.1.3)

mb_check_encodingCheck if the string is valid for the specified encoding

Description

bool mb_check_encoding ([ string $var= NULL [, string $encoding= mb_internal_encoding() ]] )

Checks if the specified byte stream is valid for the specified encoding. It is useful to prevent so-called "Invalid Encoding Attack".

Parameters

var

The byte stream to check. If it is omitted, this function checks all the input from the beginning of the request.

encoding

The expected encoding.

Return Values

Returns TRUE on success or FALSE on failure.


A set of functions to check the validity of a credit card number.
Categories : Ecommerce, Credit Cards, PHP
Credit Card validation routine. Uses MOD 10 to check if credit card number is valid.
Categories : Ecommerce, Credit Cards, PHP, Complete Programs
A very simple function to check if a number is odd or even. Not much of mystery but useful nontheless.
Categories : PHP



How to control the number of decimal places when outputting numbers.
Categories : PHP, Strings, Variables
A simple and fast calendar combining PHP and tables. Use this as a base for applications in which a calendar is needed.
Categories : Date Time, PHP, Complete Programs, Calendar
Check if cookies are supported by the clients browser (Cookie Support)
Categories : PHP, Cookies
GetCombo Combo-BOX - Abstraction With function you can retrieve the combo-box structure with its data.
Categories : PHP, HTML and PHP
Dynamic thumbnails using the GD image library
Categories : PHP, GD image library, Graphics
Creates a CAPTCHA image in PHP, which displays 5 numbers stored in a session.
Categories : PHP, GD image library, Form Processing, Security
How to get the number of seconds since 01/01/1970 (Timestamp) from MSSql?
Categories : MS SQL Server
Check parameters validity. Paranoia was designed to check the validity of the parameters that a php page will receive after a form submission. It can be used to check the variables sent by POST or GET
Categories : Algorithms, HTML and PHP, PHP, Variables
Adding dashes to credit card numbers
Categories : Strings, Credit Cards, PHP
Permutations, Combinations and Factorials
Categories : PHP, PHP Classes, Math.
How to create a file with any number of UniqIDs (GUIDs)
Categories : PHP, Security