> Could someone plese explain this line if code??? What does the "?" do? > $r = ($r < 1) ? $config['maxResults'] : $r; It's short circuit IF (I believe that's the right word for it). This is the same thing as doing this: if( $r < 1 ) { $r = $config['maxResults']; } else { $r = $r; } Chris
- [PHP] What does a ? do Brandon Orther
- Re: [PHP] What does a ? do Rick St Jean
- RE: [PHP] What does a ? do Boget, Chris
- RE: [PHP] What does a ? do Altunergil, Oktay