__ (double underscore)

Translation-related functions

Summary

__(string $string)

Translate a string.

Parameters:
  • $string (string) – The string to be translated.
Returns:

string The translated string.

Usage

Examples

echo __("String to translate");