kellz Posted November 12, 2007 Share Posted November 12, 2007 ok that sounds confusing.. but i see the question mark used allot, and mostly it's used in an IF statement.. what does it do ??? can i see a very simple example. And it's hard to find somewhere on the internet when your looking for a question mark.. or some other symbol. How many special symbols does php have? and what are they... apart from the obvious $ @ . { } ( ) Quote Link to comment Share on other sites More sharing options...
pocobueno1388 Posted November 12, 2007 Share Posted November 12, 2007 A question mark in an if statement would be the Ternary Operator, which is a way to shorten an If/Else statement. http://www.totallyphp.co.uk/tutorials/using_if_else_ternary_operators.htm Quote Link to comment Share on other sites More sharing options...
phpQuestioner Posted November 12, 2007 Share Posted November 12, 2007 This may help you some too: http://www.csci.csusb.edu/dick/samples/php.syntax.html If that is what your looking for. 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.