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 $ @ . { } ( ) Link to comment https://forums.phpfreaks.com/topic/76924-what-is-the-for/ 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 Link to comment https://forums.phpfreaks.com/topic/76924-what-is-the-for/#findComment-389495 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. Link to comment https://forums.phpfreaks.com/topic/76924-what-is-the-for/#findComment-389500 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.