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 position and length of a matched part of the multibyte regular expression for a predefined multibyte string

mb_ereg_search_pos

(PHP 4 >= 4.2.0, PHP 5)

mb_ereg_search_posReturns position and length of a matched part of the multibyte regular expression for a predefined multibyte string

Description

array mb_ereg_search_pos ([ string $pattern [, string $option= "ms" ]] )

Returns position and length of a matched part of the multibyte regular expression for a predefined multibyte string

The string for match is specified by mb_ereg_search_init(). If it is not specified, the previous one will be used.

Parameters

pattern

The search pattern.

option

The search option. Defaults to 'ms'.

Return Values

An array including the position of a matched part for a multibyte regular expression. The first element of the array will be the beginning of matched part, the second element will be length (bytes) of matched part. It returns FALSE on error.

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


How to build a search query for any N number of words in a search string
Categories : PHP, Regexps, Search Engines, Search
How to limit the number of records returned by a query in PostgreSQL
Categories : Databases, PostgreSQL
color codes for positive and negative numbers
Categories : PHP, MySQL, Databases, HTML



This function searches text or HTML files for URLs embedded in the text and returns them in an array.
Categories : Arrays, Strings, General
Addition of very large positive integer numbers
Categories : PHP, Math.
subtraction of large positive integers
Categories : PHP, Math.
Creating thumbnails from MySQL Blobs online
Categories : PHP, MySQL, Graphics, HTML and PHP, Databases
http://phpMySearch.web4.hm - The phpMySearch search engine system is a completeworld wide web indexing and searching system for a small domain or intranet.
Categories : Search Engines, PHP, Databases, MySQL
A File Browser Class.To Read Drives,Directories and Files .Files writing is also possible
Categories : PHP, PHP Classes, Filesystem
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
A PHP script to check Google pagerank, Technorati data, Alexa data, Google indexed/backlink, Yahoo indexed / backlink, MSN indexed, AllTheWeb search result, Altavista search result, Exactrank data and more...
Categories : PHP, Search Engines
Counting the number of words in user-supplied text
Categories : PHP, Strings