-
-
Save parzibyte/c8b0b160c6308d20612e74f4b549b440 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$x = 1; | |
$abierta = false; | |
$cadaCuantos = 4; | |
foreach ($datos0 as $dato0) { | |
if (!$abierta) { | |
echo '<div class="row" style="padding:10px;">'; | |
$abierta = true; | |
} | |
echo '<div class="col-md-3 "> | |
Aquí más elementos... | |
</div>'; | |
if ($x % $cadaCuantos == 0) { | |
echo '</div>'; | |
$abierta = false; | |
} | |
$x++; | |
} | |
if ($abierta) { | |
echo '</div>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment