A
A
agent11562017-01-07 17:30:53
Yii
agent1156, 2017-01-07 17:30:53

How to break a swift loop?

How to break this loop properly???
The example below shows the error

<?php switch (){ ?>

<? }?>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
W
WQP, 2017-01-07
@WQP

<div>
<?php switch($variable): 
case 1: ?>
    <div>
    Newspage
    </div>
<?php break; ?>
<?php case 2: ?>
    </div>
    Forum
    <div>
<?php break; ?>
<?php endswitch; ?>
</div>

V
Viktor Yanyshev, 2017-01-07
@villiwalla

Something like this Alternative syntax for control structures

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question