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. 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. Link to comment https://forums.phpfreaks.com/topic/184081-gah-whats-this-called/#findComment-971847 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.