You are here

public static function ArrayHelper::spliceAssociativeValues in Helper 7

2 calls to ArrayHelper::spliceAssociativeValues()
ArrayHelperTest::testSpliceAssociativeValues in tests/ArrayHelperTest.test
XmlHelper::simplifyElements in lib/XmlHelper.php

File

lib/ArrayHelper.php, line 93

Class

ArrayHelper

Code

public static function spliceAssociativeValues(array $array, array $values, $offset, $length = 0) {
  return array_slice($array, 0, $offset, TRUE) + $values + array_slice($array, $offset + $length, NULL, TRUE);
}