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
the ? operator [message #5472] Tue, 03 September 2002 22:58 Go to previous message
JamesS is currently offline  JamesS   United States
Messages: 275
Registered: July 2002
Location: Atlanta, GA
Karma:
Senior Member
i see this type of statement used quite often in the fudforum code:

$msg_subject = ( !preg_match('/^{TEMPLATE: reply_prefix}/i', $subj) ) ? '{TEMPLATE: reply_prefix}'.$subj : $subj;


since i am still fairly new to php (picking it rather quickly since it is quite a lot like C/C++) i dont quite understand this statement. what is being with the '?' here? also what is the ': $subj'?

(this is just a sample line from another thread on the board)
[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: Tue Dec 03 18:39:54 GMT 2024

Total time taken to generate the page: 0.04192 seconds