这个功能是什么? [英] For what is this function?

查看:61
本文介绍了这个功能是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我必须更改前面的代码,但我听不懂此功能:

Hi, I have to change foreing code and i can''t understand this function :

function pQuery($q,$type='hs'){
    if (!(strpos($type,'w') === false)) {
        while($r = @mysql_fetch_assoc($q)){
            $out = pQuery($r,str_replace('w','',$type));
            if (!function_exists($callback)) break;
        }
        return $out;
    }
    if (!(strpos($type,'f') === false)) {
        if (!is_array($q)) return Array();
        $out = Array();
        foreach($q as $k=>$v) $out[$k] = pQuery($v,str_replace('f','',$type));
        return $out;
    }
    if (!(strpos($type,'h') === false)) {
        return htmlspecialchars(stripslashes($q));
    }
    if (!(strpos($type,'s') === false)) {
        return stripslashes($q);
    }
}



有人可以解释吗?
谢谢.



Can anybody explain it?
Thanks.

推荐答案

q,


type = ' hs'){ 如果(!(strpos(
type='hs'){ if (!(strpos(


type,' w')=== false )){ 同时(
type,'w') === false)) { while(


这篇关于这个功能是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆