Jump to content

Need Meaning In Php


nitesh

Recommended Posts

That's part of PHP's ternary if statement. It's a short way of writing an if statement. If the POST above is equal to "U", the attribute 'value' will be set to "U"...... else(if not), it will be set to: "I". The expression to be evaluated comes before the ? sign. Between the ? and : is what the VALUE will be set to if the expression is true. After the : is what the VALUE attribute will be set to if the expression is false. See here for more info: http://davidwalsh.name/php-shorthand-if-else-ternary-operators

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...