title: shorthand php if{} ELSE IF{} else{}
body: <p>is there a possibility to write a shorthand if, ELSE IF, else statement for php.</p>
  
  <p>if / else is clear but is there a shorthanded way when i want to use elseif too (except switch)?</p>
  
  <pre><code>if ($typeArray == 'date'){
      echo 'date';
  } else if($typeArray == 'time'){
      echo 'time';
  } else {
      echo 'text';
  }
  </code></pre>
  
  <p>Haven't found any good answer else, where there is a shorthand version for nested if statements including an elseif.</p>
  
  <p>greetings timmi</p>