note 125290 deleted from language.operators.arithmetic by cmb
| From: | cmb@php.net | Date: | Wed, 19 Aug 2020 20:03:27 +0000 |
| Subject: | note 125290 deleted from language.operators.arithmetic by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-215000@lists.php.net to get a copy of this message | ||
Note Submitter: Thomas
----
If you only want some kind of even/odd table row functionality, you could simply do it like this:
<?php
$flip = 0;
for ($i=0; $i<10; $i++) {
// do whatever; use $flip for styling/markup
$flip = 1 - $flip;
}
?>