function strpos($stack,$needle,$ofs=0,$case=FALSE) {
		return preg_match('/^(.{'.$ofs.'}.*?)'.
			preg_quote($needle,'/').'/us'.($case?'i':''),$stack,$match)?
			$this->strlen($match[1]):FALSE;
	}
function strpos($stack,$needle,$ofs=0,$case=FALSE) {
		return preg_match('/^(.{'.$ofs.'}.*?)'.
			preg_quote($needle,'/').'/us'.($case?'i':''),$stack,$match)?
			$this->strlen($match[1]):FALSE;
	}
function strpos ( $ stack , $ needle , $ ofs = 0 , $ case = FALSE ) { return preg_match ( '/^(.{' . $ ofs . '}.*?)' . preg_quote ( $ needle , '/' ) . '/us' . ( $ case ? 'i' : '' ) , $ stack , $ match ) ? $ this -> strlen ( $ match [ 1 ] ) : FALSE ; }
Find position of first occurrence of a string
@return int|FALSE
@param $stack string
@param $needle string
@param $ofs int
@param $case bool
Find position of first occurrence of a string