2
是否有“内联”操作,可以使这样的:是否有数组的内联“OR”运算符?
$class_map = array(
'a' => 'long text',
'b' => 'long text',
'c' => 'long text',
'd' => 'other text',
'e' => 'different text'
);
为了是这样的:
$class_map = array(
'a' OR `b` OR `c` => 'long text'
'd' => 'other text',
'e' => 'different text'
);
我知道array_fill_keys()
,但它不是一个真正的“内联”的解决方案,我想能够在简单的array
中查看/编辑我所有的密钥和值。
*** AFAIK ***,没有没有。 – Script47
不仅此...“a,b,c”=> – devpro
@devpro表单不起作用。 – rockyraw