Hello Jordan, have a look at the SPL extension (Standard PHP Library) which introduces a few things (for instance SplFile). Have a look here: http://php.net/~helly I do not think we need a string class right now unless you want to provide a full unicode one that later works with HEAD seamingly. If you are intersted, then the ArrayObject/ArrayIterator implementation in SPL can be made much faster. I know what to do but have no time for that... and as always, help is always welcome here and if you have something to show, then show us :-)
marcus Monday, December 3, 2007, 5:43:19 PM, you wrote: > I am currently working on a Object-Oriented Library extension that wraps a > lot of functionality in PHP's standard library dealing with strings, > arrays, fileIO, etc. into classes. > (String class, Collection class, etc.) > This would allow end-users to create objects that represent data types and > resources, and take advantage of all the benefits of OOP (object chaining, > polymorphism, etc) all in a c compiled extension. > Example: > $myString=new String("Hello world!"); > $myLowerCaseString = > $myString->copy()->replace("world","universe")->lowerCase(); > > > > The goal of this project is to help PHP mature into a more object-oriented > language with an object oriented library, while addressing a common > complaint about the standard library not being very consistent > (http://en.wikipedia.org/wiki/Php#Criticism [8th bullet]) > > I have already implemented a couple classes, but would like to get feedback > from the PHP development community on the idea of creating such a library > for PHP. Also, any suggestions would be greatly appreciated. > > Thanks, > > Jordan Wambaugh > > Best regards, Marcus -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php