Jump to content

What are those called? ($a ? $b : $c)


LegendBreath

Recommended Posts

Hi there,

I've been using those kinds of lines a lot recently:

($foo ? 'foo' : 'bar')

 

And was wondering, how is it called? And someone got examples of any others "syntax" that I could apply with those? Like I know that there is also ($a % $b : $c), or something like it.

 

Thanks! :)

Link to comment
https://forums.phpfreaks.com/topic/63986-what-are-those-called-a-b-c/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.