Thursday 26 July 2012

strrpos() function

Finds position of the last occurance from a string.
e.g
$str = 'abcd';
$chkStr = 'b';
echo strpos($str,$chkStr); // output will be: 1
?>

No comments:

Post a Comment