title: PHP, Shorthand, If..Else using Ternary Operators
body: <p>Is there a oneliner for this? A nice Ternary OP?</p>
  
  <pre><code>$F_NAME = $_SESSION['USR']['F_NAME'];
  if(isset($_POST['F_NAME'])) {$F_NAME = $_POST['F_NAME'];}
  </code></pre>
  
  <p>Basically "If the POST is sent, show that, even if the post is empty, otherwise grab the value from the session, but only if the post was not set or empty"</p>
  
  <p>Really splitting hairs here...</p>
  
  <p>looking for something like this:</p>
  
  <pre><code>$F_NAME = ? ($F_NAME ? isset($_POST['F_NAME']) : $_SESSION['USR']['F_NAME']);
  </code></pre>