tqla Posted September 5, 2009 Share Posted September 5, 2009 Hello, I was hoping someone can translate this out of shorthand for me. Thanks. $_SESSION['type'] = ($nlcontenttype)? $nlcontenttype : ''; Link to comment https://forums.phpfreaks.com/topic/173177-solved-can-someone-translate-this-for-me/ Share on other sites More sharing options...
kratsg Posted September 5, 2009 Share Posted September 5, 2009 $_SESSION['type'] = ($nlcontenttype)? $nlcontenttype : ''; //equivalence if($nlcontenttype){ $_SESSION['type'] = $nlcontenttype; } else { $_SESSION['type'] = '';//nullity } The basic breakdown is this: (CONDITION)?IF TRUE:IF FALSE Link to comment https://forums.phpfreaks.com/topic/173177-solved-can-someone-translate-this-for-me/#findComment-912857 Share on other sites More sharing options...
tqla Posted September 5, 2009 Author Share Posted September 5, 2009 Thanks kratsg! Link to comment https://forums.phpfreaks.com/topic/173177-solved-can-someone-translate-this-for-me/#findComment-912858 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.