Bring some Ruby/Prototype flavour in your PHP array

8 thoughts on “Bring some Ruby/Prototype flavour in your PHP array”

  1. Cool idea………

    Now each time when i create an array i m getting an object with it’s native methods and ofcourse i can add new methods in this way to deal with customized operations with my array data.

    A good example of data encapsulation.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s