title: Keeping Multidimensional Array's Semantic?
body: <p>Today's the first day I've really gotten stuck into creating anything from scratch in PHP7. My script skills are pretty rudimentary anyway, so I apologise in advance.</p>
  
  <p>I've been looking at tutorial pages + searching Google/Stack and can't seem to find the answer to a few basic syntax questions about Multidimensional Arrays (MDAs).</p>
  
  <p>The tutorials I've read show MDAs as follows:</p>
  
  <h2>MDA Tutorial Example:</h2>
  
  <p><a href="http://webcheatsheet.com/php/multidimensional_arrays.php" rel="nofollow noreferrer">http://webcheatsheet.com/php/multidimensional_arrays.php</a>
  <a href="https://www.w3schools.com/php/php_arrays_multi.asp" rel="nofollow noreferrer">https://www.w3schools.com/php/php_arrays_multi.asp</a></p>
  
  <pre><code>$a = array(array(array("a", a2, a3),
                   array("b", b2, b3),
                   array("c", c2, c3) 
                   ),
             array(array("a", a2, a3),
                   array("b", b2, b3),
                   array("c", c2, c3) 
                   ),
             array(array("a", a2, a3),
                   array("b", b2, b3),
                   array("c", c2, c3) 
                   )
             );
  </code></pre>
  
  <p>As all the layers are simply named <strong><em>array</em></strong> and <a href="https://www.w3schools.com/php/showphp.asp?filename=demo_array_multi" rel="nofollow noreferrer">W3 only calls the parent variable with numerical values</a> for <strong>[$row] [$col]</strong> it's unclear what solutions there are for naming and labeling elements in the array with custom handles.</p>
  
  <p><a href="http://php.net/manual/en/language.types.array.php" rel="nofollow noreferrer">Example 6 on PHP.net</a> shows something that looks along the right lines, but it's not an exact demonstration.</p>
  
  <p>Using the array shorthand which I'm more familiar with, would something like this work?</p>
  
  <h2>For Example:</h2>
  
  <pre><code>    $a = [Custom1[Custom2[Custom3["a", a2, a3],
                           Custom3["b", b2, b3],
                           Custom3["c", c2, c3] 
                           ],
      //**does each level require the same naming as the level above
                   Custom2[Custom3["a", a2, a3],
                           Custom3["b", b2, b3],
                           Custom3["c", c2, c3] 
                           ],
      //**Or Are they independent and customised freely            
                      Fred[Wez["a", a2, a3],
                           Otto["b", b2, b3],
                           Sam["c", c2, c3] 
                           ]],
                     ];
  </code></pre>
  
  <blockquote>
    <p>I'm sure this is a fairly basic question, but as I said, I just couldn't seem to find an answer.</p>
  </blockquote>