PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of peyman   PHP Convert CSV to UTF-8   README.md   Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP Convert CSV to UTF-8
Convert a CSV file to have data in UTF-8 encoding
Author: By
Last change:
Date: 5 years ago
Size: 610 bytes
 

Contents

Class file image Download

csv_file_to_utf8_encoding

convert CSV file encoding to utf-8

usage

$cv = new convert_csv_to_utf8($file_address,$saveto=false);
  • file_address : csv file address
  • saveto (optional) : save fixed csv file to location . if not set fixed csv file will be replaced with original csv ### return : return converted/true if successfully convert/fixed csv file , return filenotfind/false if file is not exist

convert_encoding

$string = convert_csv_to_utf8::convert_to_utf8($string, $encoding);
  • string : your text
  • encoding : your text encoding ### return : return encoded text to utf-8