title: Stripping out numerical array keys from var_export
body: <p>I want to do <a href="http://php.net/var_export" rel="noreferrer">var_export()</a> and strip out all numerical array keys on an array.  My array outputs like so:</p>
  
  <pre><code>array (
    2 =&gt; 
    array (
      1 =&gt; 
      array (
        'infor' =&gt; 'Radiation therapy &amp; chemo subhead',
        'PPOWithNotif' =&gt; '',
        'PPOWithOutNotif' =&gt; 'Radiation therapy &amp; chemo PPO amount',
        'NonPPO' =&gt; 'Radiation therapy &amp; chemo Non PPO amount',
      ),
    ),
    3 =&gt; 
    array (
      1 =&gt; 
      array (
        'infor' =&gt; 'Allergy testing &amp; treatment subhead',
        'PPOWithNotif' =&gt; '',
        'PPOWithOutNotif' =&gt; 'Allergy testing &amp; treatment PPO amount',
        'NonPPO' =&gt; 'Allergy testing &amp; treatment Non PPO amount',
      ),
    )
  )
  </code></pre>
  
  <p>By doing this I can shuffle the array values however needed without having to worry about numerical array values.</p>
  
  <p>I've tried using <code>echo preg_replace("/[0-9]+ \=\&gt;/i", '', var_export($data));</code> but it doesn't do anything.  Any suggestions?  Is there something I'm not doing with my regex?  Is there a better solution for this altogether?</p>