title: Concatenate recursive key of an array php
body: <p>I have an array like this :</p>
  
  <pre><code>array(2) {
  
    ["xxx"]=&gt;
      array(2) {
        ["yyy"]=&gt;
          array(1) {
            ["text"]=&gt; string(13) "test offline2"
          }
        ["yyy2"]=&gt;
          array(1) {
            ["text"]=&gt; string(12) "test offline"
          }
      }
      ["usual_name"]=&gt; string(12) "test offline"
  
  }
  </code></pre>
  
  <p>And I would like to have a new array like this :</p>
  
  <pre><code>array(3) {
    ["xxx.yyy"]=&gt; string(12) "test offline"
    ["xxx.yyy2"]=&gt; string(12) "test offline"
    ["usual_name"]=&gt; string(12) "test offline"
  }
  </code></pre>
  
  <p>If someone can help me pls !</p>