Re: Skip first 4 array values
| From: | Brad Bonkoski | Date: | Fri, 09 Jun 2006 14:28:41 +0000 |
| Subject: | Re: Skip first 4 array values | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-237701@lists.php.net to get a copy of this message | ||
Eric Butera wrote:
On 6/9/06, Brad Bonkoski <bbonkoski@mediaguide.com> wrote:of course this uses the same *logic* for both indexed and associative arrays, so I thought it would be more readable for the user.if numerically indexed: $max = count($array); for($i=0; $i<$max;$i++) {Why not start $i at 3 and skip the if else? you could, just a simple example out of probably hundreds of ways to do it...if( $i <= 3 ) continue; else { //do what you will }}