$numbers = array( 1, 2, 3, 4, 5, 6, 7, 8, 9 ); foreach( $numbers as $number ) { if ( $number == 4 ) { continue; } // ... snip }