Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

PHP strrpos — Find the position of the last occurrence of a substring in a string

<?php

$pos = strrpos($mystring, "b");
if ($pos === false) { // note: three equal signs
    // not found...
}

?>
 
PREVIOUS NEXT
Tagged: #PHP #strrpos #Find #position #occurrence #substring #string
ADD COMMENT
Topic
Name
5+7 =