dot Posted February 2, 2006 Report Share Posted February 2, 2006 failā ir šitādi vārdi: viens divi triis chetri pieci un ar for ciklu tā arī viņi izvadās- viens, divi, trīs..... bet kā izvadīt lai ir pieci, četri, trīs t.i otrādāk? Link to comment Share on other sites More sharing options...
Vebers Posted February 2, 2006 Report Share Posted February 2, 2006 http://php.net/array_reverse Link to comment Share on other sites More sharing options...
Roze Posted February 2, 2006 Report Share Posted February 2, 2006 php reizeem ir jauki kodeet.. <? echo implode('<br/>',array_reverse(file('tavs.txt'))); ?> Link to comment Share on other sites More sharing options...
dot Posted February 2, 2006 Author Report Share Posted February 2, 2006 (edited) ļoti liels paldies :D jap, tagad jūtos varens ;) Edited February 2, 2006 by dot Link to comment Share on other sites More sharing options...
Delfins Posted February 2, 2006 Report Share Posted February 2, 2006 būsi varens, kad sāksi lasīt manuāli patstavīgi... Link to comment Share on other sites More sharing options...
Stopp Posted February 2, 2006 Report Share Posted February 2, 2006 šai gadījumā arī der (un citos ir izdevīgāk) lietot to pašu for: for($i=$lielaakais;$i<=$mazaakais;$i--) Link to comment Share on other sites More sharing options...
Recommended Posts