Simply put.... [boolean expression] ? [if true] : [if false] Where the boolean expression is anything that can evaluate to true or false (non-strict type checking.) Dan.
Right, I've just gone through all my scripts and had to put in a bunch of isset statements to get rid of all my undefined index errors. These were mainly due to 'no such $_GET variable' and other little things like that. Is it even important to fix these errors even though the script runs fine and won't display an error unless error reporting is turned on?
IMO yes, increases portability, makes debugging easier later on and generally makes your code more professional. How would you feel if you bought a script, had error_reporting fully on and found a long page of errors, and when you ask you only get the reason "We're too lazy to fix that, use this workaround to hide them." Worth doing.