What does PHP's underscore function do?

后端 未结 4 833
Happy的楠姐
Happy的楠姐 2020-12-09 09:06

What does this function do?

_()

Can you link me to the relevant documentation, as searching for \"_\" is nigh on impossible?

4条回答
  •  囚心锁ツ
    2020-12-09 09:11

    Note sure I understand your question but here are some explanations for common scenarios.

    • PHP Magic Method
    • Old PHP4 method of defining private methods
    • gettext() alias used for localisation

提交回复
热议问题