title: Multidimensional Associative Array (PHP)
body: <p>I'm new to arrays in PHP and am trying to wrap my mind around how to make a multidimensional associative array. I'd like the array to look like this when I use print_r:</p>
  
  <pre><code>Array ( [0] =&gt; Array ( [alert] =&gt; alert [email] =&gt; Test ) )
  </code></pre>
  
  <p>Instead I get this:</p>
  
  <pre><code>Array ( [0] =&gt; Array ( [alert] =&gt; Array ( [email] =&gt; Test ) ) )
  </code></pre>
  
  <p>The code I'm using is this:</p>
  
  <pre><code>$alert_array = array();
  
  $alert_array[]["alert"]["email"] = "Test";
  </code></pre>
  
  <p>I thought trying something like this would work, but obviously my syntax is a bit off. I think I'm somewhat on the right track though?:</p>
  
  <pre><code>$alert_array[][["alert"]["email"]] = "Test";
  </code></pre>
  
  <p>Thank for your help (sorry if this is super basic, I couldn't find any questions that addressed this exactly)!</p>