Code of loop break in php:



<html>
    <head>
        <title>Loops  break</title>
    </head>
    <body>
    <?php
       
        for ($count=0; $count <= 10; $count++) {
            echo $count;
            if ($count == 10) { break; }
            echo ", ";
        }
    ?>

    </body>
</html>

0 comments:

Post a Comment

Subscribe to RSS Feed Follow me on Twitter!