src/Encoder.php
private function encodeList(array $data = null)
    {
        $data = is_null($data) ? $this->data : $data;

        $list = "";
        foreach ($data as $value) {
            $list .= $this->doEncode($value);
        }

        return "l{$list}e";
    }
private function encodeList(array $data = null)
    {
        $data = is_null($data) ? $this->data : $data;

        $list = "";
        foreach ($data as $value) {
            $list .= $this->doEncode($value);
        }

        return "l{$list}e";
    }
private function encodeList ( array $ data = null ) { $ data = is_null ( $ data ) ? $ this -> data : $ data ; $ list = "" ; foreach ( $ data as $ value ) { $ list .= $ this -> doEncode ( $ value ) ; } return "l{$list}e" ; }
Encode a list

@param  array   $data The list to be encoded.
@return string  Returns the bencode encoded list.
Encode a list