我在一個名爲「achieve3000_Gestalt_students102713.txt
」 ..我要的文件名減少Gestalt_students
目錄有一個文件只PHP如何修剪一個文件名
使用explode()
這給不同的東西完全和浸漬料代替
請幫助
編輯
我有4個文件
- achieve3000_Gestalt_students102713.txt
- achieve3000_Gestalt_teachers102713.txt
- achieve3000_Perspectives_Middle_Academy_students102713.txt
- achieve3000_Perspectives_Middle_Academy_teachers100913.txt
當您嘗試'explode'和'preg_replace'時,您做了什麼特別的工作? –
它只是這一個特定的文件,或者有我們可以找出一個模式的文件列表? – Sutandiono
是:'達到3000'一個恆定的長度? –