t()
Returns translate string for key from translation file
t(string|array $key, string $fallback = null, string $locale = null): array|string|null
Parameters
Name | Type | Default |
---|---|---|
$key * | string |array |
– |
$fallback | string |
null |
$locale | string |
null |
Return type
array
|string
|null