Re: array

From: Date: Sat, 02 Dec 2000 00:36:55 +0000
Subject: Re: array
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-4256@lists.php.net to get a copy of this message
Use cycle. $from=15; $to=23; for ($f=$form; $f<$to; $f++): echo $Arr[$f]; endfor; is it? Ketan *********** Puvodni zprava *********** Dne 30.11.2000 v 15:48 hodin afan napsal(a): >Hi all, > >As a beginer i PHP, I have "simple" problems with array: > >Let's say: >$Arr = array (a1, a2, a3, a4, a5, ..., a23); >echo "$Arr[4]"; - prints 4th element of array >But, how can I print only elements, e.g. from 8 to 12? Or, from 15 to the end? > >Thanks!

« previous php.windows (#4256) next »