This is the simplified of my code:
$html = "";
$posts = $sth->fetch(PDO::FETCH_ASSOC);
while ( $post = array_shift($posts) ){
if ( $post['deleted'] == true ){
/* jump to the four lines above (while)
* to ignore this post, becuase it is deleted
*/
}
$html .= '<div class="content">' . $content . '</div>';
}
As I've commented in the middle of my code, I need to go to the upper lines. Is it possible?
Noted that in the example I mention above, I can put $html .= ...
line into else {}
block. But in reality everything is more complicated that doing such a thing won't work. All I need to know is something like jumping to up in PHP?