Title / Description
Code • • /** make sure we can call stripos **/ • if (!function_exists('stripos')) { • // the offset param of preg_match is not supported below PHP 4.3.3 • if (GESHI_PHP_PRE_433) { • /** • * @ignore • */ • function stripos($haystack, $needle, $offset = null) { • if (!is_null($offset)) { • $haystack = substr($haystack, $offset); • } • if (preg_match('/'. preg_quote($needle, '/') . '/', $haystack, $match, PREG_OFFSET_CAPTURE)) { • return $match[0][1];
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code