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

 

ReLoad

Keys


Functions

arraybrowsercolorcookiedatetimeDBdebugdeviceDSTequiverrorflagsfontformatgeo
holidayhtmlisjsonmathparsePHPprintsearchsortstringtabletexttracetype
VOTDweatherxml

Function  before_last   Lines 165-177 (12 lines)Added: 2021-02-11 file  utils.php   Last mod: Fri 2021-05-14 21:45:07

function before_last ($needle$haystack)
        {
#-k     string  parse
#-      returns the part of $haystack before the last $needle
#-      before_last ('[', 'sin[90]*cos[180]');
#-              will return "sin[90]*cos"
#-c     biohazard dot ge at gmail dot com - https://www.php.net/manual/en/function.substr.php
#-d     2/11/21 Added

        
return substr($haystack0strrevpos($haystack$needle));
        
strrpos($haystack$needle );
        };

?>