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