<!--parser:xtscript--> # Needle is at positions 2 and 15 var $haystack = abcdefghijklmabcdefghijklm var $needle = cde var $offset = 0 var $position = call strrpos $haystack=$haystack; $needle=$needle; $offset=$offset ; print haystack= $haystack<br /> print needle = $needle<br /> print offset = $offset<br /> print position = $position<hr /> var $offset = -12 var $position = call strrpos $haystack=$haystack; $needle=$needle; $offset=$offset ; print haystack = $haystack<br /> print needle = $needle<br /> print offset = $offset<br /> print position = $position<hr /> <!--/parser:xtscript-->Show in textarea