I have an array with 4 rows, I Want to show them one by one, But only one and with an Interval.
Like: Row1 show for 5secs -> Row2 show for 5secs -> Row3 show for 5secs -> Row4 show for 5secs
I tried this, but that is not working. It loads much time and than showing only one and doing nothing more.
$count = mysqli_num_rows($result) -1;
for ($i=0; $i < $count; $i++) {
$random = rand(0, $count);
echo json_encode($data[$random]);
unset($data[$random]);
$count -= 1;
sleep(5);
}