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
Finds position of first occurrence of a string within another, case insensitive

mb_stripos

(PHP 5 >= 5.2.0)

mb_striposFinds position of first occurrence of a string within another, case insensitive

Description

int mb_stripos ( string $haystack , string $needle [, int $offset [, string $encoding ]] )

mb_stripos() returns the numeric position of the first occurrence of needle in the haystack string. Unlike mb_strpos(), mb_stripos() is case-insensitive. If needle is not found, it returns FALSE.

Parameters

haystack

The string from which to get the position of the first occurrence of needle

needle

The string to find in haystack

offset

The position in haystack to start searching

encoding

Character encoding name to use. If it is omitted, internal character encoding is used.

Return Values

Return the numeric position of the first occurrence of needle in the haystack string, or FALSE if needle is not found.

See Also

  • stripos() - Find position of first occurrence of a case-insensitive string
  • strpos() - Find position of first occurrence of a string
  • mb_strpos() - Find position of first occurrence of string in a string


Creating thumbnails from MySQL Blobs online
Categories : PHP, MySQL, Graphics, HTML and PHP, Databases
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



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
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
How to build a search query for any N number of words in a search string
Categories : PHP, Regexps, Search Engines, Search
Easy to use random number function that seeds with uniqid and allows a max value
Categories : Math., PHP
Prime number finder (Sieve of Erastothenes)
Categories : PHP, Algorithms, Math.
A function that generates random numbers between 0 and 1 with precision that you set
Categories : PHP, Math.
Convert number to words
Categories : PHP, Math., Arrays
EasyPhpThumbnail Class - The EasyPhpThumbnail class allows you to generate thumbnails and handle image manipulation for GIF, JPG and PNG on-the-fly.
Categories : PHP, PHP Classes, Object Oriented, Graphics, GD image library
BCrand, a function returns large random numbers
Categories : PHP, BC math, Algorithms