What do you want to save?
Add Code snippet
New code examples
-
PHP 2022-01-22 16:25:19
convert array to csv laravel
Instead of writing out values consider using 'fputcsv()'. This may solve your problem immediately. function array2csv($data, $delimiter = ',', $enclosure = '"', $escape_char = "\\") { $f = fopen('php://memory', 'r+'); foreach ($da... Add solution -
PHP 2021-11-18 20:03:18
php mail image
<?php //---------------------------------- // Construction de l'entête //---------------------------------- $delimiteur = "-----=".md5(uniqid(rand())); $entete = "MIME-Version: 1.0\r\n"; $entete .= "Content-Type: multipa... Add solution -
PHP 2021-11-18 02:31:10
read file using php
/* In php to read file first you have to use 'fopen' method to open the file after that you perform different operation on it. Like Reading file, Writing file etc. TO read file data we have to use 'fread' method. */ <?php $myfile = fopen("read... Add solution -
Other 2021-11-17 10:26:05
fgetcsv utf8_encode
$csvFile = fopen('file/path', "r"); fgetcsv($csvFile); while(($row = fgetcsv($csvFile, 1000, ";")) !== FALSE){ for ($c=0; $c < count($row); $c++) { echo iconv( "Windows-1252", "UTF-8", $row[$c]); ... Add solution -
PHP 2021-11-17 06:19:14
php array to csv string
Instead of writing out values consider using 'fputcsv()'. This may solve your problem immediately. function array2csv($data, $delimiter = ',', $enclosure = '"', $escape_char = "\\") { $f = fopen('php://memory', 'r+'); foreach ($da... Add solution -
C 2021-11-11 08:44:21
copy file content from one file to other in c
#include <stdio.h>#include <stdlib.h> main(){ char ch, source_file[20], target_file[20]; FILE *source, *target; printf("Enter name of file to copy\n"); gets(source_file); source = fopen(source_file, "r"); if(... Add solution