Re: [PHP-DEV] array_pick() - resent because email client broke formatting

2012-07-23 Thread Samuel Giles
Why bloat the core library of functions when you can perform: $randomValue = $array[array_rand($array)]; Am I missing the point? I don't think there is a real need for this personally it's just language bloat. Look at Java (I know it's very different) but it provides a huge amount of "built in" f

Re: [PHP-DEV] array_pick() - resent because email client broke formatting

2012-07-23 Thread Yahav Gindi Bar
On 23 ביול 2012, at 19:05, Anthony Ferrara wrote: > Andrew, > > On Mon, Jul 23, 2012 at 9:26 AM, Andrew Faulds wrote: > >> >> (resending because of broken formatting) >> >> Hi there, >> >> I apologise for my previous email. It was a disorganised mess that didn't >> really >> make the case f

Re: [PHP-DEV] array_pick() - resent because email client broke formatting

2012-07-23 Thread Anthony Ferrara
Andrew, On Mon, Jul 23, 2012 at 9:26 AM, Andrew Faulds wrote: > > (resending because of broken formatting) > > Hi there, > > I apologise for my previous email. It was a disorganised mess that didn't > really > make the case for that function very well. So here's a proper proposal > (perhaps > to

[PHP-DEV] array_pick() - resent because email client broke formatting

2012-07-23 Thread Andrew Faulds
(resending because of broken formatting) Hi there, I apologise for my previous email. It was a disorganised mess that didn't really make the case for that function very well. So here's a proper proposal (perhaps too proper?). Introduction I am proposing a function, named array_pic