Help in loop for

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Suppose I have this:

for($i = 0; $i < count($data); $i++){
    $blocked   = isBlockedForMe($my_id, $account_id); // true or false

}

I want when the $blocked is true to SKIP to the next step, I dont want 
to BREAK, I want something like this:

for($i = 0; $i < count($data); $i++){
    $blocked   = isBlockedForMe($my_id, $account_id); // true or false
    if($blocked){
       ..............SOMETHING HERE TO SKIP but continue in the loop
    }

    // I dont want to show/execute what is below
    .............
    ............
}

Thanks
F


------------------------ Yahoo! Groups Sponsor --------------------~--> 
You can search right from your browser? It's easy and it's free.  See how.
http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~-> 

PHP Data object relational mapping generator
http://www.metastorage.net/ 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-objects/

<*> To unsubscribe from this group, send an email to:
    php-objects-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 




[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux