src/Collections/Collection.php
public static function copy($array, $target)
    {
        foreach ($array as $key => $element) {
            self::add($target, $element, $key);
        }
    }
public static function copy($array, $target)
    {
        foreach ($array as $key => $element) {
            self::add($target, $element, $key);
        }
    }
public static function copy ( $ array , $ target ) { foreach ( $ array as $ key => $ element ) { self :: add ( $ target , $ element , $ key ) ; } }
Copy element of an array to another array.

@param array $array
@param array $target

@return null
Copy element of an array to another array .