Re: [PHP] Array: If i'm in the child array then how I tell the parent's key name..
Scott, I hope this code help you: [PHP CODE] /* * Author: * Josue Aranda <[EMAIL PROTECTED]> */ // This set an $arr $arr= array( 'ABC' => array( 'DEF' => 'Data'
[PHP] Array: If i'm in the child array then how I tell the parent's key name..
Suppose that I'm in a child array and I wanna know how do I tell what key is the parent's level, one level up... For example, --snip-- $arr['ABC']['DEF']; --snip-- Let's say the child is "DEF" then the key name one level up would be "ABC". How do I determine the one level up? Thanks... -- P