php e() and h() functions?

前端 未结 13 2080
情书的邮戳
情书的邮戳 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:46

    It looks like it might be CakePHP.

    See e()

    e (mixed $data)

    Convenience wrapper for echo().

    This has been Deprecated and will be removed in 2.0 version. Use echo() instead.

    See h()

    h (string $text, string $charset = null)

    Convenience wrapper for htmlspecialchars().

提交回复
热议问题