Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私のコードは次のようになります..o/pは、1つのセルに4つの値があり、最初の列だけに4つの値があるcsvファイルです。
このコードのより良いバージョンをお願いします。できるだけ速くに
foreach ($xml->xyz as $xyz) { $f = fopen('blahblahblah.csv', 'a') or die("can't open file"); fputcsv($f, get_object_vars($lis),';','"');
$f = fopen('blahblahblah.csv', 'a') or die("can't open file"); foreach ($xml->xyz as $xyz) fputcsv($f, get_object_vars($lis),';','"'); fclose($f);
このように大丈夫なはずです。