A few years ago I decided phpShop wasn't doing much and the community was nothing near the size of osCommerce so I switched. Managing and supporting the modules I had for phpShop became tedious so I removed them from the site.
PHP Functions
Load CSV or Delimited Data from a File into a Named Array
September 30th, 2008 - brett
This small snippet will allow you to load CSV or other delimited Data from a File into a named array. The heads in the CSV file will be used for the names of the array keys.
Regular Expression for Date or Datetime Validation
August 22nd, 2008 - brett
This Regular Expression will verify if a date is a valid YYYY-MM-DD with an optional HH:MM:SS. It checks to see if the day is a valid day in the given month with the consideration of leap years.
Word Permutator Function
July 25th, 2008 - brett
Give this function a phrase and it will return all of the permutations of the words that make up the phrase.
Deep In Array
October 30th, 2007 - brett
Function similar to in_array() but it recursively searches a multi-depth array.
URL Reader
July 24th, 2007 - brett
This function will download the contents of any URL and return it as a string that you can save to a file or database.
It will use curl if it is installed. Otherwise it will use fopen/fread.
