3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $data = array( 'lala', 'tral"ala' ); $buffer = fopen('php://temp', 'r+'); fputcsv($buffer, $data, ',', ' '); rewind($buffer); $csv = fgets($buffer); fclose($buffer); echo $csv;
based on 0Gtg6
Output for 5.4.0 - 5.4.45
lala,tral"ala