A better version of strrpos which also allows for the use of RegExp-based matching
public static StringReversePosition ( string $strHaystack, string &$strNeedle, integer $intOffset = null ) : mixed | ||
$strHaystack | string | the text content to search through |
$strNeedle | string | either a plain-text item or a regexp pattern item to search for - if regexp used, this will update as the actual string of the content found |
$intOffset | integer | optional position offset |
return | mixed | the position number OR false if not found |