gergy008 Posted December 5, 2009 Share Posted December 5, 2009 It's like a shortened if statement, What's it's name !!! $var = $ifstatement==true ? "Foo" : "Bar"; I know now it works, i just need it's name. Quote Link to comment https://forums.phpfreaks.com/topic/184081-gah-whats-this-called/ Share on other sites More sharing options...
premiso Posted December 5, 2009 Share Posted December 5, 2009 It is called the Ternary Operator. Quote Link to comment https://forums.phpfreaks.com/topic/184081-gah-whats-this-called/#findComment-971847 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.