Monday, June 23, 2008

PHP: sort an array that is not case sensitive

Whenever I need to sort an array in PHP and not worry about it sorting lower case first, then upper case, I use the following:

array_multisort(array_map(strtolower,$pictureList), SORT_ASC, SORT_STRING, $pictureList);

Thursday, May 29, 2008

Always have a scrollbar


To always have the browser scrollbar like IE has, add this to the style sheet.

html {
overflow: -moz-scrollbars-vertical;
}

Friday, March 21, 2008

Cross browser compatable drop down menu

1. First step is to include this javascript on your page.

2. Next, include this css

3. Last, here's the html code to make it all happen

Wednesday, March 12, 2008

Sign up for free MP3 hosting at mp3crib.com

Monday, March 10, 2008

First Blog

Never bored games (ie Never board games) has started development of its site. View progress at www.neverboredgames.com. Be sure to visit our affiliate daily-sudoku.org to play in daily sudoku tournaments.