On 27 Oct 2003 13:20:48 -0500, you wrote:

>echo '<table border="1">'."\n"
>    .'<tr>'                   
>    .'<th>SKU</th>'
>    .'<th>Jan</th>'
>    .'<th>Feb</th>'
>    .'<th>Mar</th>'
>    .'<th>Apr</th>'
>    .'<th>May</th>'
>    .'<th>Jun</th>'
>    .'<th>Jul</th>'
>    .'<th>Aug</th>'
>    .'<th>Sep</th>'
>    .'<th>Oct</th>'
>    .'<th>Nob</th>'
>    .'<th>Dec</th>'
>    .'</tr>'."\n"; 

for ($i = 1; $i <= 12; $i++)
{
        echo ('<th>' . strftime ("%b", strtotime ("1970-$i-01")) . '</th>');
}

is shorter, and stands a chance of working across locales.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to