PHP strrpos()

Back to php.

moderator    (2009-09-22)


PHP strrpos()

strrpos() is a PHP function that will allow you to find the last occurency of a string in a string, a common error would be to place the arguments like in the eregi() function :

int strrpos ( string $haystack , mixed $needle [, int $offset ] )

Here is an example:

$mystring = 'abcdef';
$findme  = 'c';

$pos = strrpos($mystring, $findme);


(more options below)

kreodig    (2010-09-07 14:43:05)
PHP strrpos()

You can Download huge collection of PHP ebooks87 ebooks
See also Codes & Cheats Winter 2010 (eGuide)
PHP with MySQL Beyond The Basics by great site Lynda  dot com

*kelora    (2010-11-04 17:24:14)
12 years ago


$mystring = 'abcdef';
$findme  = 'c';

$pos = strrpos($mystring, $findme);



More websites

You must register to see these links, as this is a collaborative page, then you may change the order of the links by clicking the icons before the titles.

Other websites

The following links might be less relevant, please change their ranks if you find them useful.

 Javascript equivalent for PHP's strrpos
kevin.vanzonneveld > techblog/article/javascript equivalent for

 PHP : strrpos - Find position of last occurrence of a char in a string

Find position of last occurrence of a char in a...

 PHP: strrpos - Manual
php.benscom > manual/ja/function.strrpos.

This function does what strrpos would if it handled multi-character...
//function recurses until it finds last instance of $needle in...

 Rails for PHP Developers – Reference for PHP strrpos in Ruby
railsforphp > reference/strings/strrpos

Are you a PHP developer interested in the Ruby on Rails...
Looking for Rails or PHP web application development,...

 PHP: strrpos - Manual
algorytmy > doc

zaznacz działy do przeszukania (brak wyboru = wszystkie...
Prawdziwa skarbnica wiedzy na temat tworzenia stron WWW i nie...

 CrunchBang ~ PHP: * vs strpos()
crunchbang > archives/2007/09/26

which will only find the first occurrence of a single... - PHP - strrpos
phpdig > ref/rn58re1194

and is designed to provide information about the PHP programming...

 PHP: strrpos - Manual
php > manual/pt BR/function.strrpos.

This function does what strrpos would if it handled multi-character...
//function recurses until it finds last instance of $needle in...
Encontra a posição da última ocorrência de um caractere em uma...

 Javascript equivalent for Php's strrpos - KvZ - TechBlog - Scriptych
scriptych.hivefire > articles/57987/javascript equivalent for

Random Insights into Oracle: Apex Modal Windows are a snap using...
Improving Application Usability with Ext JS Keyboard...

 PHP :: Strrpos For Multiple Chars
bigresource - PHP / strrpos
goldvision > ca/en/manuals

 PHP Manual: strrpos
nusphere > kb

 PHP UTF-8 | Get PHP UTF-8 at
sourceforge > projects

Very nice, i will preper the system to do the migration,...
posted by anonymous 327 days...
posted by anonymous 283 days...

 JavaScript strrpos - PHP.JS
phpjs > functions/strrpos:549

// strrpos' offset indicates starting point of range till...
// while lastIndexOf's optional 2nd argument indicates ending point...
// Finds position of last occurrence of a string within another...

 PHP Editor Review - Php Manual Function strrpos
php editors

 PHP Tutorial : Strpos and Strrpos | PHP Tutorials and code

 PHP: Cut your excerpt off at the word using strrpos
marketingtechblog > programming -> PHP Manual -> Find position of last occurrence of a char in a string
weberdev > Manuals

Find the position of the last occurrence of a substring in a...
May be specified to begin searching an arbitrary number of...

 strrpos and offset? - PHP Development
justskins > forums/strrpos and offset 96138

Hi I would like to be able to simulate an exec but starting at...
Hi, Does anyone has try the offset of Column chart? I try to...

  * , bug? - ObjectMix Forum

The manual page has a couple of comments for a function to do...

 Strrpos - The Wiki Guide to PHP
php.wikia > wiki/Strrpos

function fillIframe_PREFOOTER_RIGHT_BOXAD() { if(typeof(AdEngine) !=...
function fillIframe_PREFOOTER_LEFT_BOXAD() { if(typeof(AdEngine) !=...

 note 71401 added to function.strrpos - Mombu the Php Forum

 php strrpos explode is_array 函数使用教程

 Conditional Advertising :: Jasongraphix
jasongraphix > journal/conditional advertising

 PHP - strrpos - String-Funktionen
selfphp > funktionsreferenz/string funktionen/strrpos.

DHTMLX Ajax toolkit offers a comprehensive set of JavaScript UI...
Kaspersky Lab ist ein weltweit führendes Unternehmen, dessen...
Sedo ist die weltweit führende Handelsplattform für...


Guest name   (option)     Register
Please sum : 844 + six  

Trackbacks : If you talked about this article in your blog or website, you may instantly get a backlink 
There's no trackback at the moment.