how to make this if else in ternary operator
<p>I am looking for email in my view page. there are two ways email can get there. Either by POST or by SESSION.
if it is a $_POST then I want to use the $_POST email other wise I want to use the email saved in session.
Currently the code I have is below</p>

<pre><code>$email = (isset($_POST['email']) ? $_POST['email'] : '');
</code></pre>

<p>whats the BEST way to do it in least lines of code</p>
