Ok so I have a JSON string looks like this.
{
    "1": [
        "a",
        "ab",
        "ac"
    ],
    "3": [
        "v",
        "aw",
        "ea"
    ],
    "4": [
        "ffg",
        "sd"
    ]
}
I decoded it with json_decode($string, true); Now, I need to find a way to check, for example, is a exists? If it exists, I want to know the name of its parent value(e.g. 1). The keys and values aren't always the same, they will keep changing. Can anyone provide me an example code on how can I do this? Thanks in advanced ;)
 
    