Follow Sebastiaan de Jonge on Twitter
Sebastiaan de Jonge

Blog

14Feb

PHP: Extra array functions

Posted on February 14, 2011 in PHP by Sebastiaan de Jonge

During my recent PHP/TYPO3 adventures I had to come up with some extra array functionality to grab my desired data from an array. Shockingly I couldn't find any official PHP way to do this. So I created my own.

28Dec

PHP: Dividing an array into equal pieces

Posted on December 28, 2010 in PHP by Sebastiaan de Jonge

Something I needed to do a while ago, and I thought it wouldn't be a bad idea to share it. It's a quick way to divide an array into equal segments. Just take a look at the function code.

9Dec

PHP: Make special characters less special

Posted on December 9, 2009 in PHP by Sebastiaan de Jonge

Today I had to fix a problem with some special characters inside a name, but not inside a linked filename. After looking around a little I came up with the following idea.

29Nov

Quickly reading CSV files with PHP

Posted on November 29, 2009 in PHP by Sebastiaan de Jonge

So why would we want to read data from a CSV file? Well I will give an example, not so long ago a customer requested that data from his back-office system would be imported into his website on a periodic base. The data from this system was supplied was in the CSV format, and of course contained a lot of bogus and unnecesary data. (Otherwise we could have just done it with simple SQL).

Search

Categories

Tags

Archive

Blogroll

Syndicate