simon-fraser/PHP-Library — pull request #1 by DavidTurner (2012-12-19 12:17:29+00:00)
Title: Some Tweaks and New Functionality

Made a small tweak to some of your database functionality, using an implode function in the insert rather than manually assembling each of the labels. Also adjusted the numbers function to work a bit better if some idiot, such as myself, were to try and pass a number through rather than a string.

I’ve also added two new functions to the str class:

1. hexcolor: converts any string of text into a colour you can use. Doubt it has *many* uses, but it may come in handy for some things.
2. curly: this takes pretty much any string of text and takes "regular" quotes and turns them into “curly” quotes. Nice as an extra piece of detail on some sites.

I’ve added these at the start of the str class and have commented them slightly differently to make them a bit easier to see/ridicule.