私はこの文字列を持っています(それはアップルの.stringsファイルです):
/* this is a comment line; it may contain semicolons */
"you have here some text; also may contain semicolons" = "some other text;";
/* this is a comment line; it may contain semicolons */
"you have here some text; also may contain semicolons" = "some other text;";
等々。
コメントされていない各行の終わりにあるセミコロンの後で、この文字列を分割する必要があります。
explode(";\n", $string);
行が;(空白)(改行)で終わる可能性があるため、使用すると正確でない場合があります
更新:出力は配列である必要があります。各要素には、コメント行(存在する場合)と引用符で囲まれた文字列行が含まれている必要があります。