Coder Profile - Show off your skills, get a coder profile.
 
 
 
The Author
VBAssassin
Scott Thompson
Send A Message
Rating
7.33
out of 10
( 3 Ratings )
Please login to rate source codes.

Click here to register a free account with us.
General Details
PHP (Hypertext Preprocess...
Posted 108 Days Ago
682 Views
Received 3 Ratings
More Codes By This Author
Make maxlength='' work on...
Dynamic Transparent GIF P...
To Do List (With Effects)
Breadcrumb Function
Remove Transparency
Articles By This Author
Speed Up Delivery of your...
AJAX - When to use it?
Null Byte Poison - How it...
Versioning Your Applicati...
When to use OOP in PHP

PHP - Collections Class


Description
A replica of the Collection class in VB6
Technical
Supports the following methods (see examples at the bottom of source code for more info)

add(item, before, after); //before and after are optional, to bypass before use null & before and after are optional
count(key);
item(key);
remove(key);
Source Code
Comments
Please login to post comments.
 
VBAssassin     Posted 1 Day Ago
 
 
Isn't PHP arrays generally vectors anyway? As in dynamically grow/shrink as
needed. So PHP does support vector (arrays).

Kind regards,
Scott
 
Izzmo     Posted 1 Day Ago
 
 
Well, in PHP, that's what it comes down to... an array. PHP is not very strict
and doesn't have many options for such a class.

If PHP only supported Vectored Arrays (actually, they are called Vector's, not
arrays, but had to add array just in case someone didn't know)

Very well done though.
 
VBAssassin     Posted 30 Days Ago
 
 
Thats not what collections are. Don't think of them as arrays or you will get
confused.

Kind regards,
Scott
 
smallbadad     Posted 30 Days Ago
 
 
Should make it so you can use $add ( arrray ( 1,2,3,4 ) );
Just put in the add function to test if it's an array or not.. if it is an
array loop until count array and add to function, if you understand what i mean.
I've just woken up :)
Page 1 of 1
More "PHP (Hypertext Preprocessor)" Source Codes By This Author
Recently Posted "PHP (Hypertext Preprocessor)" Source Codes
Recently Rated "PHP (Hypertext Preprocessor)" Source Codes
 
 
Part of the MyPingle Network
Development Blog :: Make A Donation :: Contact Me
Terms & Conditions :: Privacy Policy :: Documents
Version 1.44.00
Copyright © 2007 - 2008, Scott Thompson, All Rights Reserved