[PHP-QA] Funny array function

2012-09-30 Thread kuldeep dhaka
hello guys, this is my first time, if thing mail is at wrong place please forward it the right place. while coding , i just found a requirement, its little bit funny. if it already exists, please be calm and mail me the function name and its usage. for accessing arrays we use , , ); ?> i hope you

[PHP-QA] Re: [PHP-DEV] Funny array function

2012-09-30 Thread Charlie Somerville
I'm struggling to imagine how such a function would be useful considering you can already use [] to index arrays. If you have a variable 'depth' you need to drill down to, then writing a function to do that is also fairly trivial. On Sunday, 30 September 2012 at 9:50 PM, kuldeep dhaka wrote:

[PHP-QA] Re: [PHP-DEV] Funny array function

2012-09-30 Thread Anthony Ferrara
Yes, it's fairly trivial to write a function for this. I wrote a pair of them in about 2 minutes: http://codepad.viper-7.com/rqVlqL On Sun, Sep 30, 2012 at 7:56 AM, Charlie Somerville < char...@charliesomerville.com> wrote: > I'm struggling to imagine how such a function would be useful consid

[PHP-QA] Re: [PHP-DEV] Funny array function

2012-09-30 Thread kuldeep dhaka
i m extending the wordpress internal widget input api to simplify things, so for that i wanted a function that perform drill. i have considered other options but they wont be effecient, if a php internal function is build it would be just a [] similar one, and most effecient because while recursi

[PHP-QA] Re: [PHP-DEV] Funny array function

2012-09-30 Thread Andrew Faulds
On 30/09/12 13:05, kuldeep dhaka wrote: i m extending the wordpress internal widget input api to simplify things, so for that i wanted a function that perform drill. i have considered other options but they wont be effecient, if a php internal function is build it would be just a [] similar one,

[PHP-QA] Bug #63184 [Csd->ReO]: test ext/spl/tests/RecursiveDirectoryIterator_getSubPathname_basic.phpt failed

2012-09-30 Thread laruence
Edit report at https://bugs.php.net/bug.php?id=63184&edit=1 ID: 63184 Updated by: larue...@php.net Reported by:larue...@php.net Summary:test ext/spl/tests/RecursiveDirectoryIterator_getSubPathname_basic.phpt

[PHP-QA] Re: [PHP-DEV] Funny array function

2012-09-30 Thread Eitan Mosenkis
Those look good except that you're using isset($ar[$key]) when you should be using array_key_exists($key, $ar). If the value you were trying to set is set to null, your function will erroneously return false instead of null (since it isn't 'set', but the key does in fact exist) On Sun, Sep 30, 201

[PHP-QA] Req #63147 [Asn->Csd]: Some tests fail because require internet connection

2012-09-30 Thread stas
Edit report at https://bugs.php.net/bug.php?id=63147&edit=1 ID: 63147 Updated by: s...@php.net Reported by:r...@php.net Summary:Some tests fail because require internet connection -Status: Assigned +Status: Closed Type: