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.
可能重复: 参考 - 这个符号在 PHP 中是什么意思?
我正在考虑为页面使用自定义分类法并阅读我看到的使用“=>”和“__”的代码示例
有人可以澄清这些符号的用途和作用吗?
谢谢!
=>用于定义关联数组中键的值:
=>
$array = array('key' => 'value');
该__()函数用于翻译:
__()
$text = __($textkey, $textdomain);