如何在检查常量时检查键中的多个值?
How to check multiple values in a key while checking the constant?
我已经尝试解决这个问题很长时间了,none 我找到的有关这项工作的 SO 文章。
我有以下概念可以使用...
'dependency' => array('Value', '==', 'true'),
'dependency' => array('Value1', '==', 'true'),
'dependency' => array('Value2', '==', 'true'),
'dependency' => array('Value3', '==', 'true'),
'dependency' => array('Value4', '==', 'true'),
但是,我需要 "Value" 来包含 Value1、Value2、Value3 和 Value4。
有办法吗?
我已经尝试了很多东西,所以也许我只是把它们串在一起是错误的,因为我已经尝试过...
array,
array_merge,
array_keys,
array_push,
和几个 $variable 方法,但没有任何效果。
有人可以帮忙告诉我我做错了什么吗?
像这样在你的数组中放置一个数组:
'dependency' => array(array("value1", "Value2", "Value3"), '==', 'true'),
我已经尝试解决这个问题很长时间了,none 我找到的有关这项工作的 SO 文章。
我有以下概念可以使用...
'dependency' => array('Value', '==', 'true'),
'dependency' => array('Value1', '==', 'true'),
'dependency' => array('Value2', '==', 'true'),
'dependency' => array('Value3', '==', 'true'),
'dependency' => array('Value4', '==', 'true'),
但是,我需要 "Value" 来包含 Value1、Value2、Value3 和 Value4。
有办法吗?
我已经尝试了很多东西,所以也许我只是把它们串在一起是错误的,因为我已经尝试过...
array, array_merge, array_keys, array_push,
和几个 $variable 方法,但没有任何效果。
有人可以帮忙告诉我我做错了什么吗?
像这样在你的数组中放置一个数组:
'dependency' => array(array("value1", "Value2", "Value3"), '==', 'true'),