php-scalar-objects
php-scalar-objects copied to clipboard
Experimental API for PHP Scalar Objects
test git
Hi, I was introduced to your project via a [discussion on reddit](http://www.reddit.com/r/PHP/comments/2cf2ib/idea_alternative_standard_library/). I am wondering if you are still working on this, since there hasn't been much activity lately. If...
Arrays can have numeric keys, too.
hello :)
Hi, I'm also working on a project to shape the future API of php6, which can be found at [gossi/oophp](https://github.com/gossi/oophp). Also part of this are objects for primitives. Yesterday I...
Hey, while I do like the two prototypes for String.replace() it's actually an issue to properly document these two methods. I think it would be better to split them into...
This is a suggestion: how about following PSR-1 and PSR-2 for code formatting? I see that you are already following PSR-4, that would help to contribute people taking this project...
Arrays and Strings can share some common ground in implementation details. For in reality a string is just a list of characters. This means many Array methods would have common...
One of the nice elements of PHP's scalar functions being represented as functions instead of member methods is that they allow for partial application. This is less intuitive with member...
I'll come back and give these some more detail, just getting them off the top of my head before I forget. Member methods - join - sum - any -...
Float.toPrecision(int) int -> string ``` $f = 5.123456; $f.toPrecision(); //"5.123456" $f.toPrecision(5); //"5.1235" $f.toPrecision(2); //"5.1" $f.toPrecision(1); //"5" ``` Float.toFixed(int) int -> string ``` $f = 5.123456; $f.toFixed(); //"5.123456" $f.toFixed(1); //"5.1" $f.toFixed(2);...