我有一個陣列隨時間範圍內時, 的時間範圍具有特定的視頻, 即時通訊將顯示視頻與PHP檢查匹配時間範圍與當前時刻的陣列
我創建了一個變量的當前時間匹配的如下圖所示,並分配到陣列, 請人幫我過濾視頻當前時間從陣列
EX-如果服務器時間是2012-06-08 14點45分10秒這個我需要展示視頻2
$d1 = "2012-06-08 14:26:39";
$video1='http://video-js.zencoder.com/oceans-clip.mp4';
$d2 = "2012-06-08 14:39:39";
$video2='http://video-js.zencoder.com/oceans-clip.mp4';
$d3 = "2012-06-08 14:56:10";
$cc=array(
1=>array($d,$d2,$video1),
2=>array($d2,$d3,$video2)
);
//get current time
$ctime=date('Y-m-d H:i:s',time());
//need to check matched array element for current time within above array date ranges
//Ex - if the server time is 2012-06-08 14:45:10 this need show video 2
English,please .. – Steve