troubleshooting Question

In this code what does the "?" and ":" mean / called?

Avatar of vrmetro
vrmetroFlag for United States of America asked on
PHP
3 Comments2 Solutions285 ViewsLast Modified:
Hello,

Trying to figure out what the "?" and ":" mean in the code below.  I know what they do or what this string below does, but not those specific symbols; and are there other variations of these short cuts available?

Thank you
isset($_SESSION[$flds]) ? $_SESSION[$flds] : '' ;
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 2 Answers and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros