| Posted by Evert on 09/29/05 01:14 
chris wrote:> I was looking through some PHP code and saw the below line of code and was
 > wondering what it did -
 >
 > $w = ($tmp[0]>$maxw) ? $maxw : $tmp[0];
 >
 > can someone explain what it would do ??
 >
 >
 >
 
 if ($tmp[0]>$maxw) {
 $w = $maxw;
 } else {
 $w = $tmp[0];
 }
 
 RTFM?
 
 good luck,
 Evert
  Navigation: [Reply to this message] |