PHP Classes

Packages of troy knapp

Recommend this page to a friend!
  All class groups  >  All authors  >  Packages of troy knapp (2)  >  Mission progress status  >  Reputation  
Picture of troy knapp
Name: troy knapp is available for providing paid consulting. Contact troy knapp .
Classes: 2
Country: United States United States
Age: 43
All time rank: 2704374 in United States United States
Week rank: 195 Up19 in United States United States Up
All time users: 778
Week users: 0
Innovation award
Innovation award
Nominee: 1x
 
  A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z  
  Files folder image Multidim  
PHP Programming Innovation award nominee
December 2010
Number 3


Prize: One downloadable copy of Komodo IDE
Manipulate multidimensional arrays in MySQL tables
Have you ever wished you could deal with tables instead of multidimensional arrays, but didn't want the overhead associated with creating tables, populating them etc? This class is meant to be a simple alternative to using large associative data arrays. Elements are just as easy to add into temporary tables as they are to put into arrays, they are just as easy to get back out again... and MUCH easier to unset, filter and sort.

This class works by using an "array like" syntax (so it's easy to remember) and creates MySQL tables in memory. Basic functionality that you would expect to have when dealing with arrays is provided (in fact, you'll notice a striking similarity to what the methods "md_push" and "md_asort" do and their cousins do), but it leverages MySQL's ability to sort filter and delete etc. to simplify dealing with complex arrays. It also provides a wrapper method that allows the user to run their own SQL queries on the table (without having to worry about database connections or what the temporary table's name is).

  Files folder image PHP Array Cache File  
Store array values in PHP cache file scripts
This class can store array values in PHP cache file scripts.

It can take a array value and an optional file name and store the array in a PHP cache script.

The generated script can load the original array value using a require statement.


  A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z