php[tek] 2018 : Call for Speakers


(PHP 4 >= 4.3.2, PHP 5, PHP 7)

streamWrapper::stream_readRead from stream


public string streamWrapper::stream_read ( int $count )

This method is called in response to fread() and fgets().


Remember to update the read/write position of the stream (by the number of byte'>Sonstift wenz suesskefullyead/w).


BePameters<-Ltenth3> Rl> $cunt d ReeeeHowan pye'>Sons thtabarom ste nurrent pagition ofshould breadturned.
BeR├╝ckgel>wtexth3> RIthe snz anz ls Cotifncode class="parameter">$cuntSonsavaille a,eadturns ann pye an nz availle a. RIthno ytemonz tabarinsavaille a,eadturnsterr Setrong>stode c>FALSEcode>st ornd yteempty ring
BeFehler/ceptions> Wirft trong>stode c>E_WARNINGcode>st, wennescr Aufruthtierve Mhod ie fehlhrelug (z.B. weil sinumicht ple tnt">r">t pst).p>


ReIthe seadturnslue="rinslg>: to hencode class="parameter">$cuntstode c>E_WARNINGcode>sterors. will breetted D,nd




Repan class="methodname">. s called indirt1-lyeafr"> Relledg anpan class="methodname">streamWrapper::stream_readrong> o upeckbo if ymitle="PHE Objf le SEdiOFa>ym> h anbeeresphed.phRIthnot ple tnt"> D, ymitle="PHE Objf le SEdiOFa>ym> insassentd.

trong class="nowarni"> Warng ReeeWheresphng Sue sewholfiles< (r Spexale t,ith X fgee-u_t-i_ntents" . )PHP 7)will lled streamWrapper::stream_readrong> ofollow in thhhhhhhh . s ns loop bute anlg>:hhhh streamWrapper::stream_readrong> oadturnnsa . s caignonzd. di v>

BeSie seah> Rl class="nample tlpst Rep class="">mber tfel="stfs-coseeAlsoi ead()

> mber tfel="stfs-coseeAlsoi ets()an>