Gunnar Bittersmann: Syntax

Beitrag lesen

if ($z>$x || $z>$y) {

echo"ok";
}


>   
> kürzer schreiben.  
  
??  
  
Eric,  
Was ist daran nicht kurz genug?  
  
`if ($z > min($x, $y))`{:.language-php} mag zwar im Quelltext kürzer aussehen, einen Vergleich sparst du damit jedoch nicht ein.  
  
Gunnar

-- 
I never intended HTML source code (the stuff with the angle brackets) to be seen by users. […] To my surprise, people quickly became familiar with the tags and started writing their own HTML documents directly. (Tim Berners-Lee in Weaving the Web)