title: How can i get the parent key and value if i already have children value of an array?
body: <p>I am unable to figure out how to get the parent key and value with the help of it's child's key value of multidimensional array. </p>
  
  <p>I have an array in the format like this:</p>
  
  <pre><code>[91] =&gt; Array
      (
          [description] =&gt; Charged
          [boundingPoly] =&gt; Array
              (
                  [vertices] =&gt; Array
                      (
                          [0] =&gt; Array
                              (
                                  [x] =&gt; 244
                                  [y] =&gt; 438
                              )
  
                          [1] =&gt; Array
                              (
                                  [x] =&gt; 287
                                  [y] =&gt; 438
                              )
  
                          [2] =&gt; Array
                              (
                                  [x] =&gt; 287
                                  [y] =&gt; 452
                              )
  
                          [3] =&gt; Array
                              (
                                  [x] =&gt; 244
                                  [y] =&gt; 452
                              )
  
                      )
  
              )
  
      )
  </code></pre>
  
  <p>I am getting and storing the value of the key ['x']:</p>
  
  <pre><code>foreach($array as $box){
       if($box['description']=="Charged"){
              $lbl_row_arr[] = $box['boundingPoly']['vertices'][0]['x'];
       }
  }
  </code></pre>
  
  <p>So now i have value of 'x' in this example is "244". My question is how can i get the value of 'description' key if i have the value of 'x'?</p>