php function for language translation
问题 For multi-language usage of CMS, they translate terms by a function similar to function __($word) { include 'fr.php'; if(!empty($lang[$word])) {$translated=$lang[$word]; } else { $translated = $word; } return $translated; } Since we need to use this function several times in a php page, as all words and phrases will be echoed by __(' '); does the function need to include the language time every time, or it will be cached for the function after first load? Since the language file contains a