Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
simplificar-incremento.php para https://pt.stackoverflow.com/q/411247/3635
<?php
$c = 0;
$permitidos = array(1, 41, 81, 121, 161, 201, 241, 281);
foreach ($all_itens->result() as item) {
$c++;
if (in_array($c, $permitidos)) {
?>
<div class='col'>
<?=$item->id;?>
</div>
<?php
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment