php e() and h() functions?

前端 未结 13 1866
情书的邮戳
情书的邮戳 2021-02-03 19:06

I and lately I\'m seeing h() and e() functions in PHP. I have googled them, but they are so short that results don\'t give any idea of what they are. I

13条回答
  •  佛祖请我去吃肉
    2021-02-03 19:45

    Most likely, they are dummy functions someone introduced for the sake of brevity. The h(), for example, looks like an alias for htmlspecialchars():

    function h($s)
    {
        return htmlspecialchars($s);
    }
    

    So look for them in the include files. Espec. the ones with names likes "util.php" or "lib.php".

提交回复
热议问题