Warning: Invalid argument supplied for foreach() in /home/jihswbiz/public_html/t6.gwilt.org/refDox.php on line 212
Docs-rstrpos

 

ReLoad

Keys


Functions

arraybrowsercolorcookiedatetimeDBdebugdeviceDSTequiverrorflagsfontformatgeo
holidayhtmlisjsonmathparsePHPprintsearchsortstringtabletexttracetype
VOTDweatherxml

Function  rstrpos   Lines 1833-1846 (13 lines)Added: 2021-02-08 file  utils.php   Last mod: Fri 2021-05-14 21:45:07

function rstrpos $str$needle$offset )
        {
#-k     string  search  parse
#-      search backwards for a 1-character needle in haystack, and return its position (-1 if not found)
#-d     2/8/21 - Added

        
for ($i=$offset;$i>=0;$i--)
                {
                if (
$str[$i] == $needle) return $i;
                }

        return -
1;
        }

?>