title: If isset Session, add to $variable or $variable='0' write with one line
body: <p>I have php code below and I want it to use <strong>inline(one line)</strong>. It should not repeat the $_SESSION name</p>
  
  <pre><code>$view = if (isset($_SESSION['Clients-view'])){
  $view = $_SESSION['Cients-view'];
  }
  else{
  $view = '0';
  }
  </code></pre>
  
  <p>As you see it repeats <strong>$view three times</strong> and <strong>$_SESSION two times</strong>. I want it to write in a simple manner with single line.</p>
  
  <p>Hope you understand the question.</p>
  
  <p>Thank You,</p>
  
  <p>SL</p>