25

What does this function do?

_()

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

yoozer8
  • 7,194
  • 6
  • 53
  • 88
JasonS
  • 4,680
  • 15
  • 57
  • 70

4 Answers4

30

If you open http://www.php.net/_ you get to the documentation of the _() function and see its for localization stuff (gettext).

Progman
  • 14,690
  • 4
  • 32
  • 46
13

_() is an alias of gettext().

Sarfraz
  • 367,681
  • 72
  • 526
  • 573
gnud
  • 75,794
  • 5
  • 62
  • 77
10

It's an alias for the gettext() function.

Mark Cidade
  • 96,194
  • 31
  • 221
  • 232
3

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

Community
  • 1
  • 1
Treffynnon
  • 20,865
  • 5
  • 62
  • 96