title: No substitution when array out of bound
body: <p>i Have a array which is of variable size.
  Suppose currently the array <strong>$type</strong> have two elements as:</p>
  
  <pre><code>     Array ( [19] =&gt; create [20] =&gt; code )
  </code></pre>
  
  <p>the script i use is of like this:</p>
  
  <pre><code>    function drawChart() {
        var data = google.visualization.arrayToDataTable([
  
        ['Task', 'Weak Area'], 
        [('&lt;?php echo $type[0]; ?&gt;'), 5],
        [('&lt;?php echo $type[1]; ?&gt;'), 4]
      ]);
  </code></pre>
  
  <p>and works fine, but since the array elements may change i tried changing the script as :</p>
  
  <pre><code>   function drawChart() {
        var data = google.visualization.arrayToDataTable([
  
        ['Task', 'Weak Area'], 
        [('&lt;?php echo $type[0]; ?&gt;'), 5],
        [('&lt;?php echo $type[1]; ?&gt;'), 7],
        [('&lt;?php echo $type[2]; ?&gt;'), 34],
        [('&lt;?php echo $type[3]; ?&gt;'), 12],
        [('&lt;?php echo $type[4]; ?&gt;'), 40],
        [('&lt;?php echo $type[5]; ?&gt;'), 35]
      ]);
  </code></pre>
  
  <p>but it does not show the output if array index are out of bound.
  what i wanted to do is something like if type[4] is not present it will just by pass it and show output of upto type[3], can someone please help me out.</p>