⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 search.php

📁 make project on java
💻 PHP
字号:
<?php
function schr($n)
{
    $chra = array('1', '2', '3', '4', '5', '6', '7', '8', '9', '0', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v' , 'w', 'x', 'y', 'z');
    return $chra[$n];
} 

function searchstr($str, $type = 'up')
{
    $schar = $type == 'up'?' ' : ' +';
    $ischr = false;
    for($i = 0;isset($str[$i]);$i++) {
        $ord = ord($str[$i]);
        $bin = decbin($ord);
        if ($bin > '10000000') {
            $strl .= $schar;
            $strl .= schr($ord % 36);
            $mord = $ord;
            for($n = 1;$bin[$n];$n++) {
                $i++;
                $ord = ord($str[$i]);
                $strl .= schr($ord % 36);
                $mord += $ord;
            } 
            $strl .= schr($mord % 36);
            $ischr = true;
        } else {
            if ($ord < 48 || $ord > 57 && $ord < 65 || $ord > 90 && $ord < 97 || $ord > 122) {
                $ischr = true;
            } else {
                if ($ischr) {
                    $strl .= $schar;
                } 
                $strl .= $str[$i];
                $ischr = false;
            } 
        } 
    } 
    return $strl;
} 

$tmp_str = '';
$w = 0;
$x = $len;
for($i = 0;$i < $len;$i++) {
    $bin = decbin(ord($str[$i]));
    $tmp_str2 = $str[$i];
    if ($bin > '10000000'
        ) {
        for($n = 1;$bin[$n];$n++) {
            $tmp_str2 .= $str[++$i];
        } 
        $len++;
        $w++;
    } 
    $w++;
    if ($w == $x-1 && $str[$i + 1]) {
        $tmp_str .= '鈥

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -