FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » General » PHP discussions » the ? operator
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: the ? operator [message #5473 is a reply to message #5472] Tue, 03 September 2002 23:48 Go to previous messageGo to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma:
Senior Member
Administrator
Core Developer
This is a more compact way of doing an if() { } else { } condition, which is used in C quite often.
The code you've shown, is indentical to:
if( !preg_match('/^{TEMPLATE: reply_prefix}/i', $subj) ) {
   $msg_subject = '{TEMPLATE: reply_prefix}'.$subj;
} else {
   $msg_subject = $subj;
} 



FUDforum Core Developer
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: PHP-Upgrade to V4.2.x
Next Topic: help
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 17:52:51 GMT 2024

Total time taken to generate the page: 0.04442 seconds