php e() and h() functions?

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

    As several readers have said, these are CakePHP-specific short-cuts. You can find them in the API docs at: here (for CakePHP 2.x)

    I think I read that some of these are going to be removed in 1.3, personally I never used e() as typing echo really doesn't take that much longer :)

    edit: e() is deprecated in 1.3 and no longer available in 2.0 see here

提交回复
热议问题