This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function csv_to_array($fileName, $delimiter) { | |
$parsed = []; | |
$line = 1; | |
$handle = fopen($fileName, 'r'); | |
while (($data = fgetcsv($handle, 0, $delimiter)) !== false) { | |
$line++; | |
$row = []; | |
for ($i = 0; $i < count($data); $i++) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias ga="git add" | |
alias gaa="git add ." | |
alias gc="git commit -m" | |
alias gp="git push" | |
alias gs="git status" | |
alias gl="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" | |
alias gap="git add . && git commit -m 'work in progress' && git push" | |
alias gitignore="git rm -r --cached . && git add . && git commit -m '.gitignore is now working'" | |
alias cda="composer dump-autoload" | |
alias art="php artisan" |