src/Datastructure/Lists/ArrayLists/ArrayList.php
public function addAllArray(array $array): bool {
        $added = true;
        foreach ($array as $value) {
            $added &= $this->add($value);
        }
        return $added;
    }
public function addAllArray(array $array): bool {
        $added = true;
        foreach ($array as $value) {
            $added &= $this->add($value);
        }
        return $added;
    }
public function addAllArray ( array $ array ) : bool { $ added = true ; foreach ( $ array as $ value ) { $ added &= $ this -> add ( $ value ) ; } return $ added ; }
adds all elements of an array to the list

@param array $array
@return bool
adds all elements of an array to the list