diff --git a/flextype/Themes.php b/flextype/Themes.php index 8aeadfde..db1f3764 100644 --- a/flextype/Themes.php +++ b/flextype/Themes.php @@ -115,6 +115,19 @@ class Themes return new View($template, $variables); } + /** + * _strrevpos + */ + private static function _strrevpos($instr, $needle) + { + $rev_pos = strpos(strrev($instr), strrev($needle)); + if ($rev_pos === false) { + return false; + } else { + return strlen($instr) - $rev_pos - strlen($needle); + } + } + /** * Get the Themes instance. *