Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php foreach skip to next

$numbers = array( 1, 2, 3, 4, 5, 6, 7, 8, 9 );
foreach( $numbers as $number ) {
    if ( $number == 4 ) { continue; }
    // ... snip
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #foreach #skip
ADD COMMENT
Topic
Name
8+2 =