PHP: Array Function
<p>I have a select-menu on my page, that lists the following system fonts in an array:</p>

<pre><code>$default = array(
    'Arial'             =&gt; 'Arial',
    'Courier'           =&gt; 'Courier New',
    'Georgia'           =&gt; 'Georgia',
    'Helvetica'         =&gt; 'Helvetica',
    'Impact'            =&gt; 'Impact',
    'Palatino'          =&gt; 'Palatino',
    'Tahoma'            =&gt; 'Tahoma, Geneva',    
    'Times'             =&gt; 'Times New Roman',
    'Verdana'           =&gt; 'Verdana, Geneva'
);
</code></pre>

<p>When the user selects one of these fonts from the drop-down/select-menu, the font-face is output into the CSS head section of my site, like so:</p>

<pre><code>p {font: 12px Arial;}
</code></pre>

<p>This works perfectly fine, but what I am hoping to do is change the CSS to also output fall-backs:</p>

<pre><code>p {font: 12px Arial, san-serif;}
</code></pre>

<p>As I'm fairly new to PHP, using a comma and the fall-backs like the script below won't work and I was wondering how would I be able to add another font or fall-back to the array?</p>

<pre><code>$default = array(
    'Arial, sans-serif'             =&gt; 'Arial',
    'Courier New, monospace'        =&gt; 'Courier New',
    'Georgia, serif'                =&gt; 'Georgia',
    'Helvetica, sans-serif'         =&gt; 'Helvetica',
    'Impact, sans-serif'            =&gt; 'Impact',
    'Palatino, serif'               =&gt; 'Palatino',
    'Times New Roman, serif'        =&gt; 'Times New Roman',
    'Verdana, Geneva, sans-serif'   =&gt; 'Verdana, Geneva'
);
</code></pre>
