j007ha Posted August 26, 2008 Share Posted August 26, 2008 $ref = ($width > $height ? $width : $height); is it mean as if $width not bigger than $height then $width is equal to $height? ??? Link to comment https://forums.phpfreaks.com/topic/121343-solved-what-does-this-sentence-mean/ Share on other sites More sharing options...
Zane Posted August 26, 2008 Share Posted August 26, 2008 this is a tertiary statement it's like an inline IF statement (condition) ? (what to show if true) : (what to show if false) so your sentence means if the width is greater than the height then $ref = the width else $ref = the height Link to comment https://forums.phpfreaks.com/topic/121343-solved-what-does-this-sentence-mean/#findComment-625610 Share on other sites More sharing options...
pocobueno1388 Posted August 26, 2008 Share Posted August 26, 2008 It means: If $width is greater than $height, set $ref to the value of $width...otherwise set $ref to the value of $height. Link to comment https://forums.phpfreaks.com/topic/121343-solved-what-does-this-sentence-mean/#findComment-625612 Share on other sites More sharing options...
j007ha Posted August 26, 2008 Author Share Posted August 26, 2008 thx u u all, u all are so kind^^ Link to comment https://forums.phpfreaks.com/topic/121343-solved-what-does-this-sentence-mean/#findComment-625615 Share on other sites More sharing options...
trq Posted August 26, 2008 Share Posted August 26, 2008 this is a tertiary statement That would be ternary, tertiary is later than, or subsequent to secondary. Link to comment https://forums.phpfreaks.com/topic/121343-solved-what-does-this-sentence-mean/#findComment-625617 Share on other sites More sharing options...
Zane Posted August 26, 2008 Share Posted August 26, 2008 thanks thorpe silly me Link to comment https://forums.phpfreaks.com/topic/121343-solved-what-does-this-sentence-mean/#findComment-625618 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.