Re: Skip first 4 array values
| From: | Eric Butera | Date: | Fri, 09 Jun 2006 14:18:34 +0000 |
| Subject: | Re: Skip first 4 array values | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-237700@lists.php.net to get a copy of this message | ||
On 6/9/06, Brad Bonkoski <bbonkoski@mediaguide.com> wrote:
if numerically indexed:
$max = count($array);
for($i=0; $i<$max;$i++) {
if( $i <= 3 )
continue;
else {
//do what you will
}
}
Why not start $i at 3 and skip the if else?