我目前正在阅读drupal模块中的一些代码,并在关联数组中遇到了以下内容。
$this->replacements = array(
'%field' => $this->instance['label'],
'%bundle' => $bundles[$this->instance['entity_type']][$this->instance['bundle']]['label'],
);
键中的%是什么意思,还是只是一个字符串标签
我想这只是一个标签。
$a = array("%name" => "pugazh", "vaalue" => "value");
print_r($a);
如果你在corephp中尝试这样做它将返回如下输出
Array ( [%name] => pugazh [vaalue] => value )
但是我不知道它在drupal中是什么意思