我有以下动态数组,并想以交叉连接格式添加它,即
$matrix = $collection->crossJoin(['a', 'b'], ['I', 'II']);
动态数组:
Array
(
[0] => Array
(
[0] => Array
(
[propertyValueName] => A
[propertyValueId] => 200000345
[propertyValueDisplayName] => A
)
[1] => Array
(
[propertyValueName] => B
[propertyValueId] => 200000346
[propertyValueDisplayName] => B
)
[2] => Array
(
[propertyValueName] => C
[propertyValueId] => 200000347
[propertyValueDisplayName] => C
)
)
[1] => Array
(
[0] => Array
(
[propertyValueName] => 32
[propertyValueId] => 200000331
[propertyValueDisplayName] => 32
)
[1] => Array
(
[propertyValueName] => 34
[propertyValueId] => 100010481
[propertyValueDisplayName] => 34
)
[2] => Array
(
[propertyValueName] => 36
[propertyValueId] => 200000334
[propertyValueDisplayName] => 36
)
[3] => Array
(
[propertyValueName] => 38
[propertyValueId] => 200000898
[propertyValueDisplayName] => 38
)
)
)