Re: [PHP] Array - partical path to the array's path (part 2)

2005-10-03 Thread Scott Fletcher
Got it figured out by now. I noticed one small bug but I'll fix it monday morning, so i'm going to post what I did to make this work.. I'm going to donate this code to the guy at http://www.devdump.com/phpxml.php and hopefully he'll put some of this to a good use as more and more people are now u

Re: [PHP] Array - partical path to the array's path (part 2)

2005-09-29 Thread Scott Fletcher
> the xml above is not structurally > the same as the array below > > I'll bet your output has just one message > element right? or you have gone completely offtrack. > > might be time you went here: > > http://php.net/xml > http://php.net/dom > http://php.net/domxml > > might be something the

Re: [PHP] Array - partical path to the array's path (part 2)

2005-09-28 Thread Jochem Maas
Scott Fletcher wrote: Aw!!! This is driving me nut... It still does :-) get to grips with var_dump() ... Um Interesting thought... ($array.$suffix) will never be an array $suffix .= "['".$key."']"; Yea, you are correct... I was trying to integrate the coding and stumpl

Re: [PHP] Array - partical path to the array's path (part 2)

2005-09-28 Thread Scott Fletcher
> Aw!!! This is driving me nut... It still does :-) > get to grips with var_dump() ... Um Interesting thought... > ($array.$suffix) will never be an array > $suffix .= "['".$key."']"; Yea, you are correct... I was trying to integrate the coding and stumpled upon this. It's a mind

Re: [PHP] Array - partical path to the array's path (part 2)

2005-09-28 Thread Jochem Maas
Scott Fletcher wrote: To the top... Aw!!! This is driving me nut... I can't get it to do what I want it to do... Also, another problem is that we're all not thinking at the same level so I'll just dump the simple code so you all can see what I'm trying to do... [code] fantastic function -

Re: [PHP] Array - partical path to the array's path (part 2)

2005-09-28 Thread Scott Fletcher
To the top... Aw!!! This is driving me nut... I can't get it to do what I want it to do... Also, another problem is that we're all not thinking at the same level so I'll just dump the simple code so you all can see what I'm trying to do... [code] function getVal($arr, $path) { $retval