27

What does this function do?

_()

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

yoozer8
  • 7,361
  • 7
  • 58
  • 93
ComputerUser
  • 4,828
  • 15
  • 58
  • 71

4 Answers4

31

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

Progman
  • 16,827
  • 6
  • 33
  • 48
14

_() is an alias of gettext().

Sarfraz
  • 377,238
  • 77
  • 533
  • 578
gnud
  • 77,584
  • 5
  • 64
  • 78
11

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

Mark Cidade
  • 98,437
  • 31
  • 224
  • 236
3

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

Community
  • 1
  • 1
Treffynnon
  • 21,365
  • 6
  • 65
  • 98