• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What is this?

#1
[eluser]solid9[/eluser]
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.

#2
[eluser]scottwire[/eluser]
Its called a ternary operator

#3
[eluser]solid9[/eluser]
okay thanks.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.