CodeIgniter Forums

Full Version: What is this?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

Help me recall this expression condition?

$this->store_salt ? $this->salt() : FALSE;

Sorry I forgot this is a short version of if else?
What is this logic called?
Please help me recall the name.

Thanks in advanced.

El Forum

Its called a ternary operator

El Forum

okay thanks.