--TEST-- Test fputcsv() : usage variations - with enclosure & delimiter of two chars --FILE-- fputcsv(array('water', 'fruit'), ',,', '""')); } catch (ValueError $e) { echo $e->getMessage(), "\n"; } unset($fo); echo "Done\n"; ?> --CLEAN-- --EXPECT-- *** Testing fputcsv() : with enclosure & delimiter of two chars and file opened in read mode *** SplFileObject::fputcsv(): Argument #3 ($enclosure) must be a single character Done