I use geshi for syntax highlighting, and to highlight rows it uses numbers in an array,
$array = array('1', '3', '5', ...... '5001', '5003');
$geshi->highlight_lines_extra($array);
why doesn't this work instead? to create the array with out actually having all the numbers?
$numbers = null;
$i = 0;
while($i != 5000) {
$numbers .= ($i % 2) ? "'$i', " : '';
$i++;
}
$array = array($numbers);
$geshi->highlight_lines_extra($array);