1--TEST-- 2Test fputcsv() : usage variations - with default enclosure & delimiter of two chars 3--FILE-- 4<?php 5/* 6 Prototype: array fputcsv ( resource $handle , array $fields [, string $delimiter [, string $enclosure]]] ); 7 Description: Format line as CSV and write to the file pointer 8*/ 9 10/* Testing fputcsv() to write to a file when default enclosure value and delimiter 11 of two chars is provided */ 12 13echo "*** Testing fputcsv() : with default enclosure & delimiter of two chars ***\n"; 14 15/* the array is with three elements in it. Each element should be read as 16 1st element is delimiter, 2nd element is enclosure 17 and 3rd element is csv fields 18*/ 19$csv_lists = array ( 20 array(',', '"', array('water,fruit') ), 21 array(',', '"', array('"water","fruit') ), 22 array(',', '"', array('"water","fruit"') ), 23 array(' ', '^', array('^water^ ^fruit^')), 24 array(':', '&', array('&water&:&fruit&')), 25 array('=', '=', array('=water===fruit=')), 26 array('-', '-', array('-water--fruit-air')), 27 array('-', '-', array('-water---fruit---air-')), 28 array(':', '&', array('&""""&:&"&:,:":&,&:,,,,')) 29 30); 31$file_path = dirname(__FILE__); 32$filename = "$file_path/fputcsv_variation13.tmp"; 33 34$file_modes = array ("r+", "r+b", "r+t", 35 "a+", "a+b", "a+t", 36 "w+", "w+b", "w+t", 37 "x+", "x+b", "x+t"); 38 39$loop_counter = 1; 40foreach ($csv_lists as $csv_list) { 41 for($mode_counter = 0; $mode_counter < count($file_modes); $mode_counter++) { 42 43 echo "\n-- file opened in $file_modes[$mode_counter] --\n"; 44 // create the file and add the content with has csv fields 45 if ( strstr($file_modes[$mode_counter], "r") ) { 46 $file_handle = fopen($filename, "w"); 47 } else { 48 $file_handle = fopen($filename, $file_modes[$mode_counter] ); 49 } 50 if ( !$file_handle ) { 51 echo "Error: failed to create file $filename!\n"; 52 exit(); 53 } 54 $delimiter = $csv_list[0]; 55 $enclosure = $csv_list[1]; 56 $csv_field = $csv_list[2]; 57 58 // write to a file in csv format 59 var_dump( fputcsv($file_handle, $csv_field, '++') ); 60 // check the file pointer position and eof 61 var_dump( ftell($file_handle) ); 62 var_dump( feof($file_handle) ); 63 //close the file 64 fclose($file_handle); 65 66 // print the file contents 67 var_dump( file_get_contents($filename) ); 68 69 //delete file 70 unlink($filename); 71 } //end of mode loop 72} // end of foreach 73 74echo "Done\n"; 75?> 76--EXPECTF-- 77*** Testing fputcsv() : with default enclosure & delimiter of two chars *** 78 79-- file opened in r+ -- 80 81Notice: fputcsv(): delimiter must be a single character in %s on line %d 82int(12) 83int(12) 84bool(false) 85string(12) "water,fruit 86" 87 88-- file opened in r+b -- 89 90Notice: fputcsv(): delimiter must be a single character in %s on line %d 91int(12) 92int(12) 93bool(false) 94string(12) "water,fruit 95" 96 97-- file opened in r+t -- 98 99Notice: fputcsv(): delimiter must be a single character in %s on line %d 100int(12) 101int(12) 102bool(false) 103string(%d) "water,fruit 104" 105 106-- file opened in a+ -- 107 108Notice: fputcsv(): delimiter must be a single character in %s on line %d 109int(12) 110int(12) 111bool(false) 112string(12) "water,fruit 113" 114 115-- file opened in a+b -- 116 117Notice: fputcsv(): delimiter must be a single character in %s on line %d 118int(12) 119int(12) 120bool(false) 121string(12) "water,fruit 122" 123 124-- file opened in a+t -- 125 126Notice: fputcsv(): delimiter must be a single character in %s on line %d 127int(12) 128int(12) 129bool(false) 130string(%d) "water,fruit 131" 132 133-- file opened in w+ -- 134 135Notice: fputcsv(): delimiter must be a single character in %s on line %d 136int(12) 137int(12) 138bool(false) 139string(12) "water,fruit 140" 141 142-- file opened in w+b -- 143 144Notice: fputcsv(): delimiter must be a single character in %s on line %d 145int(12) 146int(12) 147bool(false) 148string(12) "water,fruit 149" 150 151-- file opened in w+t -- 152 153Notice: fputcsv(): delimiter must be a single character in %s on line %d 154int(12) 155int(12) 156bool(false) 157string(%d) "water,fruit 158" 159 160-- file opened in x+ -- 161 162Notice: fputcsv(): delimiter must be a single character in %s on line %d 163int(12) 164int(12) 165bool(false) 166string(12) "water,fruit 167" 168 169-- file opened in x+b -- 170 171Notice: fputcsv(): delimiter must be a single character in %s on line %d 172int(12) 173int(12) 174bool(false) 175string(12) "water,fruit 176" 177 178-- file opened in x+t -- 179 180Notice: fputcsv(): delimiter must be a single character in %s on line %d 181int(12) 182int(12) 183bool(false) 184string(%d) "water,fruit 185" 186 187-- file opened in r+ -- 188 189Notice: fputcsv(): delimiter must be a single character in %s on line %d 190int(20) 191int(20) 192bool(false) 193string(20) """"water"",""fruit" 194" 195 196-- file opened in r+b -- 197 198Notice: fputcsv(): delimiter must be a single character in %s on line %d 199int(20) 200int(20) 201bool(false) 202string(20) """"water"",""fruit" 203" 204 205-- file opened in r+t -- 206 207Notice: fputcsv(): delimiter must be a single character in %s on line %d 208int(20) 209int(20) 210bool(false) 211string(%d) """"water"",""fruit" 212" 213 214-- file opened in a+ -- 215 216Notice: fputcsv(): delimiter must be a single character in %s on line %d 217int(20) 218int(20) 219bool(false) 220string(20) """"water"",""fruit" 221" 222 223-- file opened in a+b -- 224 225Notice: fputcsv(): delimiter must be a single character in %s on line %d 226int(20) 227int(20) 228bool(false) 229string(20) """"water"",""fruit" 230" 231 232-- file opened in a+t -- 233 234Notice: fputcsv(): delimiter must be a single character in %s on line %d 235int(20) 236int(20) 237bool(false) 238string(%d) """"water"",""fruit" 239" 240 241-- file opened in w+ -- 242 243Notice: fputcsv(): delimiter must be a single character in %s on line %d 244int(20) 245int(20) 246bool(false) 247string(20) """"water"",""fruit" 248" 249 250-- file opened in w+b -- 251 252Notice: fputcsv(): delimiter must be a single character in %s on line %d 253int(20) 254int(20) 255bool(false) 256string(20) """"water"",""fruit" 257" 258 259-- file opened in w+t -- 260 261Notice: fputcsv(): delimiter must be a single character in %s on line %d 262int(20) 263int(20) 264bool(false) 265string(%d) """"water"",""fruit" 266" 267 268-- file opened in x+ -- 269 270Notice: fputcsv(): delimiter must be a single character in %s on line %d 271int(20) 272int(20) 273bool(false) 274string(20) """"water"",""fruit" 275" 276 277-- file opened in x+b -- 278 279Notice: fputcsv(): delimiter must be a single character in %s on line %d 280int(20) 281int(20) 282bool(false) 283string(20) """"water"",""fruit" 284" 285 286-- file opened in x+t -- 287 288Notice: fputcsv(): delimiter must be a single character in %s on line %d 289int(20) 290int(20) 291bool(false) 292string(%d) """"water"",""fruit" 293" 294 295-- file opened in r+ -- 296 297Notice: fputcsv(): delimiter must be a single character in %s on line %d 298int(22) 299int(22) 300bool(false) 301string(22) """"water"",""fruit""" 302" 303 304-- file opened in r+b -- 305 306Notice: fputcsv(): delimiter must be a single character in %s on line %d 307int(22) 308int(22) 309bool(false) 310string(22) """"water"",""fruit""" 311" 312 313-- file opened in r+t -- 314 315Notice: fputcsv(): delimiter must be a single character in %s on line %d 316int(22) 317int(22) 318bool(false) 319string(%d) """"water"",""fruit""" 320" 321 322-- file opened in a+ -- 323 324Notice: fputcsv(): delimiter must be a single character in %s on line %d 325int(22) 326int(22) 327bool(false) 328string(22) """"water"",""fruit""" 329" 330 331-- file opened in a+b -- 332 333Notice: fputcsv(): delimiter must be a single character in %s on line %d 334int(22) 335int(22) 336bool(false) 337string(22) """"water"",""fruit""" 338" 339 340-- file opened in a+t -- 341 342Notice: fputcsv(): delimiter must be a single character in %s on line %d 343int(22) 344int(22) 345bool(false) 346string(%d) """"water"",""fruit""" 347" 348 349-- file opened in w+ -- 350 351Notice: fputcsv(): delimiter must be a single character in %s on line %d 352int(22) 353int(22) 354bool(false) 355string(22) """"water"",""fruit""" 356" 357 358-- file opened in w+b -- 359 360Notice: fputcsv(): delimiter must be a single character in %s on line %d 361int(22) 362int(22) 363bool(false) 364string(22) """"water"",""fruit""" 365" 366 367-- file opened in w+t -- 368 369Notice: fputcsv(): delimiter must be a single character in %s on line %d 370int(22) 371int(22) 372bool(false) 373string(%d) """"water"",""fruit""" 374" 375 376-- file opened in x+ -- 377 378Notice: fputcsv(): delimiter must be a single character in %s on line %d 379int(22) 380int(22) 381bool(false) 382string(22) """"water"",""fruit""" 383" 384 385-- file opened in x+b -- 386 387Notice: fputcsv(): delimiter must be a single character in %s on line %d 388int(22) 389int(22) 390bool(false) 391string(22) """"water"",""fruit""" 392" 393 394-- file opened in x+t -- 395 396Notice: fputcsv(): delimiter must be a single character in %s on line %d 397int(22) 398int(22) 399bool(false) 400string(%d) """"water"",""fruit""" 401" 402 403-- file opened in r+ -- 404 405Notice: fputcsv(): delimiter must be a single character in %s on line %d 406int(18) 407int(18) 408bool(false) 409string(18) ""^water^ ^fruit^" 410" 411 412-- file opened in r+b -- 413 414Notice: fputcsv(): delimiter must be a single character in %s on line %d 415int(18) 416int(18) 417bool(false) 418string(18) ""^water^ ^fruit^" 419" 420 421-- file opened in r+t -- 422 423Notice: fputcsv(): delimiter must be a single character in %s on line %d 424int(18) 425int(18) 426bool(false) 427string(%d) ""^water^ ^fruit^" 428" 429 430-- file opened in a+ -- 431 432Notice: fputcsv(): delimiter must be a single character in %s on line %d 433int(18) 434int(18) 435bool(false) 436string(18) ""^water^ ^fruit^" 437" 438 439-- file opened in a+b -- 440 441Notice: fputcsv(): delimiter must be a single character in %s on line %d 442int(18) 443int(18) 444bool(false) 445string(18) ""^water^ ^fruit^" 446" 447 448-- file opened in a+t -- 449 450Notice: fputcsv(): delimiter must be a single character in %s on line %d 451int(18) 452int(18) 453bool(false) 454string(%d) ""^water^ ^fruit^" 455" 456 457-- file opened in w+ -- 458 459Notice: fputcsv(): delimiter must be a single character in %s on line %d 460int(18) 461int(18) 462bool(false) 463string(18) ""^water^ ^fruit^" 464" 465 466-- file opened in w+b -- 467 468Notice: fputcsv(): delimiter must be a single character in %s on line %d 469int(18) 470int(18) 471bool(false) 472string(18) ""^water^ ^fruit^" 473" 474 475-- file opened in w+t -- 476 477Notice: fputcsv(): delimiter must be a single character in %s on line %d 478int(18) 479int(18) 480bool(false) 481string(%d) ""^water^ ^fruit^" 482" 483 484-- file opened in x+ -- 485 486Notice: fputcsv(): delimiter must be a single character in %s on line %d 487int(18) 488int(18) 489bool(false) 490string(18) ""^water^ ^fruit^" 491" 492 493-- file opened in x+b -- 494 495Notice: fputcsv(): delimiter must be a single character in %s on line %d 496int(18) 497int(18) 498bool(false) 499string(18) ""^water^ ^fruit^" 500" 501 502-- file opened in x+t -- 503 504Notice: fputcsv(): delimiter must be a single character in %s on line %d 505int(18) 506int(18) 507bool(false) 508string(%d) ""^water^ ^fruit^" 509" 510 511-- file opened in r+ -- 512 513Notice: fputcsv(): delimiter must be a single character in %s on line %d 514int(16) 515int(16) 516bool(false) 517string(16) "&water&:&fruit& 518" 519 520-- file opened in r+b -- 521 522Notice: fputcsv(): delimiter must be a single character in %s on line %d 523int(16) 524int(16) 525bool(false) 526string(16) "&water&:&fruit& 527" 528 529-- file opened in r+t -- 530 531Notice: fputcsv(): delimiter must be a single character in %s on line %d 532int(16) 533int(16) 534bool(false) 535string(%d) "&water&:&fruit& 536" 537 538-- file opened in a+ -- 539 540Notice: fputcsv(): delimiter must be a single character in %s on line %d 541int(16) 542int(16) 543bool(false) 544string(16) "&water&:&fruit& 545" 546 547-- file opened in a+b -- 548 549Notice: fputcsv(): delimiter must be a single character in %s on line %d 550int(16) 551int(16) 552bool(false) 553string(16) "&water&:&fruit& 554" 555 556-- file opened in a+t -- 557 558Notice: fputcsv(): delimiter must be a single character in %s on line %d 559int(16) 560int(16) 561bool(false) 562string(%d) "&water&:&fruit& 563" 564 565-- file opened in w+ -- 566 567Notice: fputcsv(): delimiter must be a single character in %s on line %d 568int(16) 569int(16) 570bool(false) 571string(16) "&water&:&fruit& 572" 573 574-- file opened in w+b -- 575 576Notice: fputcsv(): delimiter must be a single character in %s on line %d 577int(16) 578int(16) 579bool(false) 580string(16) "&water&:&fruit& 581" 582 583-- file opened in w+t -- 584 585Notice: fputcsv(): delimiter must be a single character in %s on line %d 586int(16) 587int(16) 588bool(false) 589string(%d) "&water&:&fruit& 590" 591 592-- file opened in x+ -- 593 594Notice: fputcsv(): delimiter must be a single character in %s on line %d 595int(16) 596int(16) 597bool(false) 598string(16) "&water&:&fruit& 599" 600 601-- file opened in x+b -- 602 603Notice: fputcsv(): delimiter must be a single character in %s on line %d 604int(16) 605int(16) 606bool(false) 607string(16) "&water&:&fruit& 608" 609 610-- file opened in x+t -- 611 612Notice: fputcsv(): delimiter must be a single character in %s on line %d 613int(16) 614int(16) 615bool(false) 616string(%d) "&water&:&fruit& 617" 618 619-- file opened in r+ -- 620 621Notice: fputcsv(): delimiter must be a single character in %s on line %d 622int(16) 623int(16) 624bool(false) 625string(16) "=water===fruit= 626" 627 628-- file opened in r+b -- 629 630Notice: fputcsv(): delimiter must be a single character in %s on line %d 631int(16) 632int(16) 633bool(false) 634string(16) "=water===fruit= 635" 636 637-- file opened in r+t -- 638 639Notice: fputcsv(): delimiter must be a single character in %s on line %d 640int(16) 641int(16) 642bool(false) 643string(%d) "=water===fruit= 644" 645 646-- file opened in a+ -- 647 648Notice: fputcsv(): delimiter must be a single character in %s on line %d 649int(16) 650int(16) 651bool(false) 652string(16) "=water===fruit= 653" 654 655-- file opened in a+b -- 656 657Notice: fputcsv(): delimiter must be a single character in %s on line %d 658int(16) 659int(16) 660bool(false) 661string(16) "=water===fruit= 662" 663 664-- file opened in a+t -- 665 666Notice: fputcsv(): delimiter must be a single character in %s on line %d 667int(16) 668int(16) 669bool(false) 670string(%d) "=water===fruit= 671" 672 673-- file opened in w+ -- 674 675Notice: fputcsv(): delimiter must be a single character in %s on line %d 676int(16) 677int(16) 678bool(false) 679string(16) "=water===fruit= 680" 681 682-- file opened in w+b -- 683 684Notice: fputcsv(): delimiter must be a single character in %s on line %d 685int(16) 686int(16) 687bool(false) 688string(16) "=water===fruit= 689" 690 691-- file opened in w+t -- 692 693Notice: fputcsv(): delimiter must be a single character in %s on line %d 694int(16) 695int(16) 696bool(false) 697string(%d) "=water===fruit= 698" 699 700-- file opened in x+ -- 701 702Notice: fputcsv(): delimiter must be a single character in %s on line %d 703int(16) 704int(16) 705bool(false) 706string(16) "=water===fruit= 707" 708 709-- file opened in x+b -- 710 711Notice: fputcsv(): delimiter must be a single character in %s on line %d 712int(16) 713int(16) 714bool(false) 715string(16) "=water===fruit= 716" 717 718-- file opened in x+t -- 719 720Notice: fputcsv(): delimiter must be a single character in %s on line %d 721int(16) 722int(16) 723bool(false) 724string(%d) "=water===fruit= 725" 726 727-- file opened in r+ -- 728 729Notice: fputcsv(): delimiter must be a single character in %s on line %d 730int(18) 731int(18) 732bool(false) 733string(18) "-water--fruit-air 734" 735 736-- file opened in r+b -- 737 738Notice: fputcsv(): delimiter must be a single character in %s on line %d 739int(18) 740int(18) 741bool(false) 742string(18) "-water--fruit-air 743" 744 745-- file opened in r+t -- 746 747Notice: fputcsv(): delimiter must be a single character in %s on line %d 748int(18) 749int(18) 750bool(false) 751string(%d) "-water--fruit-air 752" 753 754-- file opened in a+ -- 755 756Notice: fputcsv(): delimiter must be a single character in %s on line %d 757int(18) 758int(18) 759bool(false) 760string(18) "-water--fruit-air 761" 762 763-- file opened in a+b -- 764 765Notice: fputcsv(): delimiter must be a single character in %s on line %d 766int(18) 767int(18) 768bool(false) 769string(18) "-water--fruit-air 770" 771 772-- file opened in a+t -- 773 774Notice: fputcsv(): delimiter must be a single character in %s on line %d 775int(18) 776int(18) 777bool(false) 778string(%d) "-water--fruit-air 779" 780 781-- file opened in w+ -- 782 783Notice: fputcsv(): delimiter must be a single character in %s on line %d 784int(18) 785int(18) 786bool(false) 787string(18) "-water--fruit-air 788" 789 790-- file opened in w+b -- 791 792Notice: fputcsv(): delimiter must be a single character in %s on line %d 793int(18) 794int(18) 795bool(false) 796string(18) "-water--fruit-air 797" 798 799-- file opened in w+t -- 800 801Notice: fputcsv(): delimiter must be a single character in %s on line %d 802int(18) 803int(18) 804bool(false) 805string(%d) "-water--fruit-air 806" 807 808-- file opened in x+ -- 809 810Notice: fputcsv(): delimiter must be a single character in %s on line %d 811int(18) 812int(18) 813bool(false) 814string(18) "-water--fruit-air 815" 816 817-- file opened in x+b -- 818 819Notice: fputcsv(): delimiter must be a single character in %s on line %d 820int(18) 821int(18) 822bool(false) 823string(18) "-water--fruit-air 824" 825 826-- file opened in x+t -- 827 828Notice: fputcsv(): delimiter must be a single character in %s on line %d 829int(18) 830int(18) 831bool(false) 832string(%d) "-water--fruit-air 833" 834 835-- file opened in r+ -- 836 837Notice: fputcsv(): delimiter must be a single character in %s on line %d 838int(22) 839int(22) 840bool(false) 841string(22) "-water---fruit---air- 842" 843 844-- file opened in r+b -- 845 846Notice: fputcsv(): delimiter must be a single character in %s on line %d 847int(22) 848int(22) 849bool(false) 850string(22) "-water---fruit---air- 851" 852 853-- file opened in r+t -- 854 855Notice: fputcsv(): delimiter must be a single character in %s on line %d 856int(22) 857int(22) 858bool(false) 859string(%d) "-water---fruit---air- 860" 861 862-- file opened in a+ -- 863 864Notice: fputcsv(): delimiter must be a single character in %s on line %d 865int(22) 866int(22) 867bool(false) 868string(22) "-water---fruit---air- 869" 870 871-- file opened in a+b -- 872 873Notice: fputcsv(): delimiter must be a single character in %s on line %d 874int(22) 875int(22) 876bool(false) 877string(22) "-water---fruit---air- 878" 879 880-- file opened in a+t -- 881 882Notice: fputcsv(): delimiter must be a single character in %s on line %d 883int(22) 884int(22) 885bool(false) 886string(%d) "-water---fruit---air- 887" 888 889-- file opened in w+ -- 890 891Notice: fputcsv(): delimiter must be a single character in %s on line %d 892int(22) 893int(22) 894bool(false) 895string(22) "-water---fruit---air- 896" 897 898-- file opened in w+b -- 899 900Notice: fputcsv(): delimiter must be a single character in %s on line %d 901int(22) 902int(22) 903bool(false) 904string(22) "-water---fruit---air- 905" 906 907-- file opened in w+t -- 908 909Notice: fputcsv(): delimiter must be a single character in %s on line %d 910int(22) 911int(22) 912bool(false) 913string(%d) "-water---fruit---air- 914" 915 916-- file opened in x+ -- 917 918Notice: fputcsv(): delimiter must be a single character in %s on line %d 919int(22) 920int(22) 921bool(false) 922string(22) "-water---fruit---air- 923" 924 925-- file opened in x+b -- 926 927Notice: fputcsv(): delimiter must be a single character in %s on line %d 928int(22) 929int(22) 930bool(false) 931string(22) "-water---fruit---air- 932" 933 934-- file opened in x+t -- 935 936Notice: fputcsv(): delimiter must be a single character in %s on line %d 937int(22) 938int(22) 939bool(false) 940string(%d) "-water---fruit---air- 941" 942 943-- file opened in r+ -- 944 945Notice: fputcsv(): delimiter must be a single character in %s on line %d 946int(32) 947int(32) 948bool(false) 949string(32) ""&""""""""&:&""&:,:"":&,&:,,,," 950" 951 952-- file opened in r+b -- 953 954Notice: fputcsv(): delimiter must be a single character in %s on line %d 955int(32) 956int(32) 957bool(false) 958string(32) ""&""""""""&:&""&:,:"":&,&:,,,," 959" 960 961-- file opened in r+t -- 962 963Notice: fputcsv(): delimiter must be a single character in %s on line %d 964int(32) 965int(32) 966bool(false) 967string(%d) ""&""""""""&:&""&:,:"":&,&:,,,," 968" 969 970-- file opened in a+ -- 971 972Notice: fputcsv(): delimiter must be a single character in %s on line %d 973int(32) 974int(32) 975bool(false) 976string(32) ""&""""""""&:&""&:,:"":&,&:,,,," 977" 978 979-- file opened in a+b -- 980 981Notice: fputcsv(): delimiter must be a single character in %s on line %d 982int(32) 983int(32) 984bool(false) 985string(32) ""&""""""""&:&""&:,:"":&,&:,,,," 986" 987 988-- file opened in a+t -- 989 990Notice: fputcsv(): delimiter must be a single character in %s on line %d 991int(32) 992int(32) 993bool(false) 994string(%d) ""&""""""""&:&""&:,:"":&,&:,,,," 995" 996 997-- file opened in w+ -- 998 999Notice: fputcsv(): delimiter must be a single character in %s on line %d 1000int(32) 1001int(32) 1002bool(false) 1003string(32) ""&""""""""&:&""&:,:"":&,&:,,,," 1004" 1005 1006-- file opened in w+b -- 1007 1008Notice: fputcsv(): delimiter must be a single character in %s on line %d 1009int(32) 1010int(32) 1011bool(false) 1012string(32) ""&""""""""&:&""&:,:"":&,&:,,,," 1013" 1014 1015-- file opened in w+t -- 1016 1017Notice: fputcsv(): delimiter must be a single character in %s on line %d 1018int(32) 1019int(32) 1020bool(false) 1021string(%d) ""&""""""""&:&""&:,:"":&,&:,,,," 1022" 1023 1024-- file opened in x+ -- 1025 1026Notice: fputcsv(): delimiter must be a single character in %s on line %d 1027int(32) 1028int(32) 1029bool(false) 1030string(32) ""&""""""""&:&""&:,:"":&,&:,,,," 1031" 1032 1033-- file opened in x+b -- 1034 1035Notice: fputcsv(): delimiter must be a single character in %s on line %d 1036int(32) 1037int(32) 1038bool(false) 1039string(32) ""&""""""""&:&""&:,:"":&,&:,,,," 1040" 1041 1042-- file opened in x+t -- 1043 1044Notice: fputcsv(): delimiter must be a single character in %s on line %d 1045int(32) 1046int(32) 1047bool(false) 1048string(%d) ""&""""""""&:&""&:,:"":&,&:,,,," 1049" 1050Done 1051