Re: Skip first 4 array values
| From: | Brad Bonkoski | Date: | Fri, 09 Jun 2006 14:01:20 +0000 |
| Subject: | Re: Skip first 4 array values | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-237696@lists.php.net to get a copy of this message | ||
if numerically indexed:
$max = count($array);
for($i=0; $i<$max;$i++) {
if( $i <= 3 )
continue;else {
//do what you will} } for associative... $count = 0; foreach($arr as $k => $v ) { if($count <= 3 )
conitnue;else {
//do stuff} $count++; } -Brad Jonas Rosling wrote:
Is there any way you can skip for example the first 4 array values/posisions in an array no matter how many values it contains? Thanks // Jonas