function send($data, $length = null) {
        if (!isset($this->pipes[0]))
            return 0;
        if (!isset($length))
            $length = strlen($data);
        return intval(fwrite($this->pipes[0], $data, $length));
    }
function send($data, $length = null) {
        if (!isset($this->pipes[0]))
            return 0;
        if (!isset($length))
            $length = strlen($data);
        return intval(fwrite($this->pipes[0], $data, $length));
    }
function send ( $ data , $ length = null ) { if ( ! isset ( $ this -> pipes [ 0 ] ) ) return 0 ; if ( ! isset ( $ length ) ) $ length = strlen ( $ data ) ; return intval ( fwrite ( $ this -> pipes [ 0 ] , $ data , $ length ) ) ; }
Write data to stdin pipe.

@param mixed $data
@param int|null $length
@return int : number of bytes written.
Write data to stdin pipe .