有没有一种简单的方法可以实现这一点,所以我不需要一直在每个变量中写入$ lang?
$lang = array();
$lang['PAGE_TITLE'] = 'My website page title';
$lang['HEADER_TITLE'] = 'My website header title';
$lang['SITE_NAME'] = 'My Website';
$lang['SLOGAN'] = 'my slogan">';
$lang['HEADING'] = 'Heading';
$lang['ABOUT'] = 'ABOUT english';
由于
答案 0 :(得分:10)
$lang = array(
'PAGE_TITLE' => 'My website page title',
'HEADER_TITLE' => 'My ...',
// etc.
);