我有下面的代碼,這讓我的文件路徑爲voicetube/record/1985150721112615
但我只需要1985150721112615
爆炸前兩個文件夾,請幫我在這格式字符串在PHP
$sql = "SELECT filePath FROM user_recordings ORDER BY recordDate ASC";
$result = mysql_query($sql);
$var = array();
while ($row = mysql_fetch_array($result))
{
$var[] = $row['filePath'];
}
你只能分割字符串每次有'/'和問題:「如何做」,絕對是一個重複 – Loko