• PHP Video Tutorials

PHP - Ds Sequence merge() Function



Ds\Sequence::merge() function can return the result of adding all given values to the sequence.

Syntax

public abstract Ds\Sequence Ds\Sequence::merge( mixed $values )

Ds\Sequence::merge() function can return the result of adding all given values to a sequence, effectively the same as adding values to a copy and return that copy.

Example

<?php
   $seq = new \Ds\Vector([1, 2, 3]);
   
   var_dump($seq->merge([4, 5, 6]));
   var_dump($seq);
?>
php_function_reference.htm
Advertisements