src/Observable.php
public function publishValue($initialValue, callable $selector = null): Observable
    {
        return $this->multicast(new BehaviorSubject($initialValue), $selector);
    }
public function publishValue($initialValue, callable $selector = null): Observable
    {
        return $this->multicast(new BehaviorSubject($initialValue), $selector);
    }
public function publishValue ( $ initialValue , callable $ selector = null ) : Observable { return $ this -> multicast ( new BehaviorSubject ( $ initialValue ) , $ selector ) ; }
Returns an observable sequence that is the result of invoking the selector on a connectable observable sequence
that shares a single subscription to the underlying sequence and starts with initialValue.
This operator is a specialization of Multicast using a BehaviorSubject.

@param mixed $initialValue
@param callable $selector
@return \Rx\Observable\ConnectableObservable|\Rx\Observable\MulticastObservable

@demo publish/publishValue.php
@operator
@reactivex publish
Returns an observable sequence that is the result of invoking the selector on a connectable observable sequence that shares a single subscription to the underlying sequence and starts with initialValue . This operator is a specialization of Multicast using a BehaviorSubject .