Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试读取文本文件的字符。
$lang['content.home'] = 'Home'; $lang['content.about_us'] = 'About Us'; $lang['content.team'] = 'team';
如何获得公正的性格
content.home和Home
和
content.about_us和关于我们
content.team和团队
我尝试使用 explode('\'', $data) 但效果不佳
foreach你可以 得到$lang key和value
foreach
$lang
key
value
$lang['content.home'] = 'Home'; $lang['content.about_us'] = 'About Us'; $lang['content.team'] = 'team'; foreach($lang as $key=>$value){ echo $key."<br>\n"; echo $value; }