dasdasd
Php
code posted
created at 21 Feb 18:54
Edit
|
Back
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
• • /** 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]; |
616 Bytes in 4 ms with coderay