Re: [PHP4BETA] A (Hopefully) simple question *gulp*
| From: | Bradley | Date: | Fri, 28 Apr 2000 08:51:29 +0000 |
| Subject: | Re: [PHP4BETA] A (Hopefully) simple question *gulp* | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-14135@lists.php.net to get a copy of this message | ||
I can't believe the response this has generated! You guys just like to show
off. =)
Thanks EVERYONE for all the help. I'm truly impressed.
Cheers,
Bradley
----- Original Message -----
From: <php4@developersdesk.com>
To: Andreas Pour <pour@mieterra.com>; <php4beta@lists.php.net>
Sent: Thursday, April 27, 2000 11:38 PM
Subject: Re: [PHP4BETA] A (Hopefully) simple question *gulp*
> Addressed to: Andreas Pour <pour@mieterra.com>
> php4beta@lists.php.net
>
> ** Reply to note from Andreas Pour <pour@mieterra.com> Thu, 27 Apr 2000
23:25:38 -0400
> >
> > John Steele wrote:
> >
> >
> > > Here's another simple way to let the colors do the work.
>
>
> And another...
>
>
> $Colors = array( "#ffffff", "#E1DAC1" );
>
>
>
> while... {
>
> echo( 'BGColor = "' . $Colors[ $I % 2 ] . '"' );
> $I ++;
>
> }
>
>
>
> =====================================================================
>
> And if you have more than two colors and don't know how many when you
> write the program...
>
>
> $Colors = array( "#ffffff", "#E1DAC1", "#ffffc0",
> "#ffc0ff" ] );
>
>
>
> while... {
>
> echo( 'BGColor = "' . $Colors[ $I % count( $Colors ) ] . '"'
> );
> $I ++;
>
> }
>
>
>
>
> --
> PHP 4.0 Beta Mailing List <http://www.php.net/version4/>
> To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net
> For additional commands, e-mail: php4beta-help@lists.php.net
> To contact the list administrators, e-mail: php4beta-admin@lists.php.net
>