MySQL ifnull equivalent for php
<p>My scenario:</p>

<pre><code>$exTime = get_cfg_var("session.gc_maxlifetime")?get_cfg_var("session.gc_maxlifetime"):1440;
</code></pre>

<p>I'd like it to be like mysql:</p>

<pre><code>$exTime = isnull(get_cfg_var("session.gc_maxlifetime"),1440);
</code></pre>

<p>or something like it that would also test for FALSE ideally.  That way I'd only have to call the function once!</p>

<p>I know I could just assign it to a var, but that would add another line to my code (oh nooes!!).  It's really a cosmetic thing, I think it'd be easier to read.  Anyway google hasn't helped me (inb4 someone proving me wrong).  Thanks!</p>
