Re: Dynamic function calls within the echo function, possible?
| From: | Curt Zirzow | Date: | Tue, 20 Jul 2004 01:13:38 +0000 |
| Subject: | Re: Dynamic function calls within the echo function, possible? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-191096@lists.php.net to get a copy of this message | ||
* Thus wrote Justin Patrin:
> Yo....:-/
>
> Hmmm, this must be PHP5 as in PHP4 parameters can't be by ref and have
> a default value.
yes, that is php5 specific.
>
> echo '<style>
> .row1 {
> background-color: #c0c0c0;
> }
> .row2 {
> backgorund-color: #808080;
> }
> </style>
I can't wait till
tr:nth-child(odd) { background-color: #c0c0c0; }
tr:nth-child(even) { background-color: #808080; }
become standard :)
http://www.w3.org/TR/2001/CR-css3-selectors-20011113/#nth-child-pseudo
Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about. No, sir. Our model is the trapezoid!