http://www.php.net/manual/it/html/language.operators.comparison.html#AEN3156
called a trinary operator
At 12:08 PM 3/20/01 -0800, Brandon Orther wrote:
>heloo,
>
>Could someone plese explain this line if code??? What does the "?" do?
>
>$r = ($r < 1) ? $config['maxResults'] : $r;
>
>Thank you,
>
>--------------------------------------------
>Brandon Orther
>WebIntellects Design/Development Manager
>[EMAIL PROTECTED]
>800-994-6364
>www.webintellects.com
>--------------------------------------------
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
##########################################################
# Rick St Jean,
# [EMAIL PROTECTED]
# President of Design Shark,
# http://www.designshark.com/
# Quick Contact: http://www.designshark.com/messaging.ihtml
# Tel: 905-684-2952
##########################################################
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]