Re: [PHP-DEV] Method compare()

2016-08-09 Thread Dan Ackroyd
On 9 August 2016 at 19:38, David Rodrigues wrote: > Sara Golemon wrote: >> Anything written in PHP could be written in C, the question you need >> to answer isn't "How?", it's "Why?". > > Sure. > > In general, I just thinking about how it can be useful to ... There are endless number of things th

Re: [PHP-DEV] Method compare()

2016-08-09 Thread David Rodrigues
Sara Golemon wrote: > Anything written in PHP could be written in C, the question you need > to answer isn't "How?", it's "Why?". Sure. In general, I just thinking about how it can be useful to iterate over values on a library itself. Laravel, for instance, have method Collection::where(), but it

Re: [PHP-DEV] Method compare()

2016-08-09 Thread Sara Golemon
On Tue, Aug 9, 2016 at 10:33 AM, David Rodrigues wrote: > Currently PHP has a method called "version_compare()". Should be great > if we have the same function but to general usage. There are some > implementations on web for that, but I guess that it could be done > natively. > Anything written i

[PHP-DEV] Method compare()

2016-08-09 Thread David Rodrigues
Currently PHP has a method called "version_compare()". Should be great if we have the same function but to general usage. There are some implementations on web for that, but I guess that it could be done natively. > compare(mixed $a, mixed $b, string $operator): boolean Then I could do something