DeanWhitehouse Posted December 11, 2008 Share Posted December 11, 2008 how do i do something like $var == 1 : true ? false ?? thanks Quote Link to comment Share on other sites More sharing options...
GingerRobot Posted December 11, 2008 Share Posted December 11, 2008 You're after the ternary operator Quote Link to comment Share on other sites More sharing options...
gevans Posted December 11, 2008 Share Posted December 11, 2008 $foo = ($var == 1) ? TRUE : FALSE; Quote Link to comment Share on other sites More sharing options...
DeanWhitehouse Posted December 11, 2008 Author Share Posted December 11, 2008 Thanks 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.