read() read(integer $len) : string Read some data into the array. Parameters integer $len How much to read Returns string — The data that has been read
readAll() readAll( $len) : string Guarantees that the full amount of data is read. Parameters $len Throws \TTransportException if cannot read data Returns string — The data, of exact length