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”的cookie。浏览时,它将被当前语言分配一个值。但是如何以当前语言显示文本?
尝试 -
if($_COOKIE["lang"]=='dutch'){ $text='dutch text'; } elseif($_COOKIE["lang"]=='german'){ $text='german text'; } elseif($_COOKIE["lang"]=='french'){ $text='french text'; } echo $text;