[EMAIL PROTECTED] (David Scott) wrote in
news:[EMAIL PROTECTED]:
> I tried your method and it's a nice variation, though it leaves me with
> two issues:
>
> 1. I'd like the numbers to be right-aligned.
> 2. I'd still like to understand why the default padding of spaces isn't
> working for prin
I tried your method and it's a nice variation, though it leaves me with
two issues:
1. I'd like the numbers to be right-aligned.
2. I'd still like to understand why the default padding of spaces isn't
working for printf(). If I could get printf() to pad with spaces, it
would be exactly what I'm
David Scott wrote:
I'm using a for() loop to generate random die rolls. I'd like the
numbers to be formatted in a grid.
In a grid... like an HTML table? You could something like:
$row = 20;
$col = 5;
echo '';
for ($i = 1; $i < $row; $i++) {
echo '';
for ($j = 1; $j < $col; $j++) {
3 matches
Mail list logo