我有線條一個txt文件,這種格式的回聲文件內容基於分離
this is a name|this is a type|this is a description
this is a name|this is a type|this is a description
this is a name|this is a type|this is a description
我需要訪問這些線路和回聲他們是這樣的:
<li type="this is a type" description="this is a description">this is a name</li>
我不知道如何來解決這個問題。
在此先感謝
其實'$部分[1 ] $ parts [2] $ parts [0]' – AbraCadaver
@AbraCadaver謝謝!我會更新我的答案。 –