RE: [PHP-WIN] array

From: Date: Thu, 30 Nov 2000 20:52:06 +0000
Subject: RE: [PHP-WIN] array
Groups: php.windows 
Request: Send a blank email to php-windows+get-4202@lists.php.net to get a copy of this message
> 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? $startingElement = 8; for( $i = $startingElement; $i < count( $Arr); $i++ ) { echo $Arr[$i]; } Chris

« previous php.windows (#4202) next »