I'm not sure how to get around this notice
<p>When I execute the following script:</p>

<pre><code>&lt;?php
$num = 3;
list($num, $dec) = explode(".", $num);
?&gt;
</code></pre>

<p>PHP says:</p>

<blockquote>
  <p>Notice: Undefined offset: 1 in /home/www/test.php on line 3</p>
</blockquote>

<p>Other than disabling these notices, is there a way I can prevent this notice from showing up?</p>
