I want to get value of PHP array index after a specific time interval. for this i am doing this. Problem : I am getting only [0] index value of PHP array but i need next then next after a Interval. How could i do this ?
<?php $row = 0; ?>
    var refreshId = setInterval( function() {
                        console.log("<?php echo $Array[$row]['created_at']; ?>");
                        <?php $row++; ?>    
                    }, 2000);
Sample Array:
Array
(
    [0] => Array
        (
            [created_at] => 19 Sep
        )
    [1] => Array
        (
            [created_at] => 20 Sep
        )
    [2] => Array
        (
            [created_at] => 21 Sep
        )   
)
 
     
    