Re: Multi-dimensional array help

From: Date: Mon, 27 Oct 2003 18:53:01 +0000
Subject: Re: Multi-dimensional array help
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-167766@lists.php.net to get a copy of this message
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.

« previous php.general (#167766) next »