Category: Programming

PHP: How to create csv files

It is very easy to create a csv file using PHP. All you need to do is create a two dimensional array of data and call fputcsv() function. This script…

Getting started with gulp.js

Gulp.js is a great tool for building and enhancing workflows. It is free and open source. It helps you automate repetitive tasks such as automating CSS creation and unit testing.…

How to parse a sentence in PHP

A sentence can be parsed in many different ways in PHP. A few methods are presented here along with their analysis. Regardless of the language you use for parsing a…

Using Pandas to read file data

Python library for data manipulation and analysis. It can work with many different data types including: symbol separated data (tsv, csv, etc.) ordered and unordered time series data matrix and…

PHP: How to validate email

Validating email is more difficult than one might think. Recently I found this this code at PHP.net and I feel a need to republish this to emphasize its effectiveness and…

PHP: Array functions

Passing arrays by value and reference The difference between passing by value and passing by reference is that you when pass by value, you are passing a copy of the…