Skip to content

Instantly share code, notes, and snippets.

View iamaks1993's full-sized avatar
πŸ‘‹
Hi there!

iamaks1993

πŸ‘‹
Hi there!
View GitHub Profile
@iamaks1993
iamaks1993 / GitCommitEmoji.md
Created August 9, 2022 12:01 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji

Inspired by dannyfritz/commit-message-emoji

See also gitmoji.

Commit type Emoji
Initial commit πŸŽ‰ :tada:
Version tag πŸ”– :bookmark:
New feature ✨ :sparkles:
Bugfix πŸ› :bug:
@iamaks1993
iamaks1993 / loadCSV.php
Created July 21, 2022 08:59 — forked from josephspurrier/loadCSV.php
Parse a CSV file in PHP, remove hidden characters, escape fields to prepare for MySQL, and return an associative array.
// Auto detect line endings
ini_set('auto_detect_line_endings', true);
function loadCSV($file)
{
// Create an array to hold the data
$arrData = array();
// Create a variable to hold the header information
$header = NULL;