Translation2::replaceEmptyStringsWithKeys()

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

Synopsis

require_once 'Translation2.php';

array Translation2::replaceEmptyStringsWithKeys (array $strings)

Opis

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

Parametr

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