hi It is a Ternary Operator, Often you can avoid large if/else statements in your code by using the ternary operator. For example:
echo "You have $i ". ($i==1 ? "message" : "messages"). " in your box.\n"; Note: "? : " operator has this syntax "expr ? expr : expr;" imran ----- Original Message ----- From: "Harry Wiens" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 05, 2003 3:26 PM Subject: [PHP] snippet > can someone explain this for me: > ... > $sFont =submit("font") ? SITE_ROOT . PROG_PATH . submit("font") : ""; > ... > > mfg. > hwiens > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php