Translation2::replaceEmptyStringsWithKeys

Translation2::replaceEmptyStringsWithKeys() – Replace the array values with their keys when empty

Synopsis

require_once 'Translation2.php';

array Translation2::replaceEmptyStringsWithKeys ( array $strings )

Description

Replace the array values with their keys when empty, just like gettext would do.

Parameter

array $strings array of strings (e.g. as returned by getPage())

Get the stringID for a given string (Previous) Set the charset used to get/store the translations (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.