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 : ''; Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
tqla Posted September 5, 2009 Author Share Posted September 5, 2009 Thanks kratsg! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.