note
Chady
<p>regarding the precedence, you can also use the <code>and</code> and <code>or</code> variants who have lower precendence so that you can have assignements work.</p>
<p>Here's a rough example with nested <code>if</code>s and an <code>else</code></p>
<code>
if ($i > 1 ) {
if ($a = function_that_may_fail()) {
$i++;
} else {
$i = 1;
}
}
</code>
<p>can become:</p>
<code>
$i > 1 and $a = function_that_may_fail() and $i++ or $i = 1;
</code>
<div class="pmsig"><div class="pmsig-47040">
<hr> <small>He who asks will be a fool for five minutes, but he who doesn't ask will
remain a fool for life.<br>
[Chady] | [http://chady.net/]
<div><strong>
Are you a Linux user in Lebanon? join the [http://www.linux.com.lb|Lebanese Linux User Group].
</strong>
</div>
</small>
</div></div>
400446
400446