JSFiddle - React, Tailwind, and code Playground
by Ahmad SM
HTML
<!DOCTYPE html>
<html>
<head>
<title>XXX</title>
<link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap.min.css">
</head>
<body>
<div class="col-sm-12">
<?php
$arrayName = array(1,2,3,4,5,6,7,8,9,10,11,12,13,14);
$skip = 7;
if (in_array($skip, $arrayName)) {
for ($i=0; $i < $skip; $i++) {
echo "<div class='col-sm-6'>kosong</div>";
}
for ($x=$skip; $x < 14; $x++) {
echo "<div class='col-sm-6'>".$arrayName[$x]."</div>";
}
}