Jump to content

[SOLVED] exit for


sitorush

Recommended Posts

Hello friends i want to know what is the syntax for, "exit for" in PHP.

ex.

for ($row=0; $row<$baris; $row++) {

echo "<tr>\n";

for ($col=0; $col<$kolom; $col++) {

if (isset($chart [ 'tampil' ] [$row] [$col])) {

echo $string1.$chart [ 'tampil' ] [$row] [$col].$string2 ;

}

}

echo "</tr>\n";

}

i want to make --- else { exit both "for loop"

thanks for your help...

sitorush.

Link to comment
https://forums.phpfreaks.com/topic/49946-solved-exit-for/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.