<?php declare(strict_types=1); $fileName = tempnam(sys_get_temp_dir(), 'test_'); $fileResource = fopen($fileName, 'wb'); fputcsv($fileResource, [false, 1, 1.0, 'string', [0], new class {function __toString(){ return 'foo';}}]); fclose($fileResource); echo file_get_contents($fileName);
You have javascript disabled. You will not be able to edit any code.