|Binary pattern match 1.0||Petter Nilsen||--||11335||1999-06-08 11:44:41||[ show ]|
|This is a function that will return the filetype of a file. It will perform a binary pattern match of the contents of the file. An array defines the filetype and associated pattern.|
|bubblesort 1||Petter Nilsen||--||11913||1998-03-03 15:03:55||[ show ]|
|This is a simple bubblesort that takes 2 arrays as argument.The first one is the actual data used for sorting, the second is data that will "tag along" with the first array, for instance a descriptive text about the data in the first array.|
|Case insensitive alphabetical array sorter 1.0||Richard Heyes||--||7641||2000-06-25 09:52:19||[ show ]|
|This function is to be used with phps' built in usort(). It will sort an array alphabetically and case insensitively, something I found the normal sort() function didn't do. An example of usage: usort($array, 'isort'); Naturally the function should be included or defined in your code.|
|database tree layout 1.1||Stig S. Bakken||--||17795||1998-09-24 17:20:23||[ show ]|
|This code displays a graphical tree (similar to that of Windows' Explorer) from the contents of a database table.|
|quicksort 1||David Sklar||--||12505||2005-01-11 12:18:06||[ show ]|
|quick sort for associative arrays|
|Search Engine||Kevin||--||11898||2000-11-07 07:28:12||[ link ]||[ show ]|
|Sort Order Class 1.2||Serge Stepanov||--||4111||2002-03-26 16:47:58||[ show ]|
|This is a class I wrote as a re-write of my original create_order_block() function. It's used to create href links on a page to sort a SQL query (in both ascending and decending orders, the two will alternate). I will make this into an object later on, but it works great as a function too.|
|Sort Order Function 1.0||Serge Stepanov||--||4505||2002-03-26 15:06:36||[ show ]|
|This is a simple function I wrote that comes in handy when I want to have href links on a page to sort a SQL query (in both ascending and decending orders, the two will alternate). I will make this into an object later on, but it works great as a function too.|
Comments or questions?
PX is running PHP 5.2.17
Thanks to Miranda Productions for hosting and bandwidth.
Use of any code from PX is at your own risk.