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 the default options for mbregex functions

mb_regex_set_options

(PHP 4 >= 4.3.0, PHP 5)

mb_regex_set_optionsSet/Get the default options for mbregex functions

Description

string mb_regex_set_options ([ string $options= "msr" ] )

Sets the default options described by options for multibyte regex functions.

Parameters

options

The options to set.

Return Values

The previous options. If options is omitted, it returns the string that describes the current options.

See Also

  • mb_split() - Split multibyte string using regular expression
  • mb_ereg() - Regular expression match with multibyte support
  • mb_eregi() - Regular expression match ignoring case with multibyte support


SQL_CALC_FOUND_ROWS - How to know the number of rows a query would have returned if there was no LIMIT set on the query using php5 and mysqli.Usfull with Pagination (Paging).
Categories : PHP, Databases, MySQL
A function that generates random numbers between 0 and 1 with precision that you set
Categories : PHP, Math.
A set of functions to check the validity of a credit card number.
Categories : Ecommerce, Credit Cards, PHP



A simple function to get the UTC offset of your location. Handy for sites that don't have more recent versions of PHP with date/time functions with options that return the offset.
Categories : PHP, Date Time
Print structured array with offsets
Categories : PHP, Debugging, Arrays
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
Counting the number of words in user-supplied text
Categories : PHP, Strings
Wraps a HTML(!) string to a given number of characters using a string break character
Categories : PHP, Strings, HTML and PHP
Linked comboboxes with php-mysql & javascript
Categories : PHP, Java Script, Databases, MySQL
Newbie Notes #7 - Ridiculous regex
Categories : PHP, Beginner Guides, Regexps
Creating thumbnails from MySQL Blobs online
Categories : PHP, MySQL, Graphics, HTML and PHP, Databases
Make a link show a diffrent URL than is set in the HREF tag.
Categories : Java Script, HTML
Setting up InnoDB on MySQL and using Transactions Begin, Commit, Rollback in PHP.
Categories : PHP Classes, Databases, PHP, MySQL, InnoDB
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