src/Observable.php
public function merge(ObservableInterface $otherObservable): Observable
    {
        return (new AnonymousObservable(function (ObserverInterface $observer) use ($otherObservable) {
            $observer->onNext($this);
            $observer->onNext($otherObservable);
            $observer->onCompleted();
        }))->mergeAll();
    }
public function merge(ObservableInterface $otherObservable): Observable
    {
        return (new AnonymousObservable(function (ObserverInterface $observer) use ($otherObservable) {
            $observer->onNext($this);
            $observer->onNext($otherObservable);
            $observer->onCompleted();
        }))->mergeAll();
    }
public function merge ( ObservableInterface $ otherObservable ) : Observable { return ( new AnonymousObservable ( function ( ObserverInterface $ observer ) use ( $ otherObservable ) { $ observer -> onNext ( $ this ) ; $ observer -> onNext ( $ otherObservable ) ; $ observer -> onCompleted ( ) ; } ) ) -> mergeAll ( ) ; }
Combine an Observable together with another Observable by merging their emissions into a single Observable.

@param ObservableInterface $otherObservable
@return Observable

@demo merge/merge.php
@operator
@reactivex merge
Combine an Observable together with another Observable by merging their emissions into a single Observable .