title: PHP Sort Array By SubArray Value by the 3rd level
body: <p>I have an array that needs to be sorted by the third level. </p>
  
  <p>I need to order the array by the <code>fullname</code> value. Is this possible?</p>
  
  <pre><code>$array = array(
      'family1' =&gt; array(
          'family_data' =&gt; array(
              'fullname' =&gt; 'Samuel Smith',
              '...' =&gt; '...'
          )
      ),
      'family2' =&gt; array(
          'family_data' =&gt; array(
              'fullname' =&gt; 'John Doe',
              '...' =&gt; '...'
          )
      ),
      'family3' =&gt; array(
          'family_data' =&gt; array(
              'fullname' =&gt; 'Adrian Chan',
              '...' =&gt; '...'
          )
      )
  );
  </code></pre>
  
  <p>Easier reading:</p>
  
  <pre><code>Array
  (
      [family1] =&gt; Array
          (
              [family_data] =&gt; Array
                  (
                      [fullname] =&gt; Samuel Smith
                      [...] =&gt; ...
                  )
  
          )
  
      [family2] =&gt; Array
          (
              [family_data] =&gt; Array
                  (
                      [fullname] =&gt; John Doe
                      [...] =&gt; ...
                  )
  
          )
  
      [family3] =&gt; Array
          (
              [family_data] =&gt; Array
                  (
                      [fullname] =&gt; Adrian Chan
                      [...] =&gt; ...
                  )
  
          )
  
  )
  </code></pre>
  
  <p>The desired result would be:</p>
  
  <pre><code>Array
  (
      [family3] =&gt; Array
          (
              [family_data] =&gt; Array
                  (
                      [fullname] =&gt; Adrian Chan
                      [...] =&gt; ...
                  )
  
          )
  
      [family2] =&gt; Array
          (
              [family_data] =&gt; Array
                  (
                      [fullname] =&gt; John Doe
                      [...] =&gt; ...
                  )
  
          )
  
      [family1] =&gt; Array
          (
              [family_data] =&gt; Array
                  (
                      [fullname] =&gt; Samuel Smith
                      [...] =&gt; ...
                  )
  
          )
  
  )
  </code></pre>