-4
isset($cs_theme_options['cs_default_page_layout']) ? $cs_theme_options['cs_default_page_layout'] : '';

In above line there is "?" mark and also ":" mark, what does it mean between two variables? any one can describe it.

Barmar
  • 596,455
  • 48
  • 393
  • 495
Shah Syed
  • 23
  • 5
  • That is called a _ternary_operator_ with details in the docs http://www.php.net/manual/en/language.operators.comparison.php#language.operators.comparison.ternary – Alex Andrei May 14 '16 at 05:48

1 Answers1

0

It's the ternary operator. Which means a IF/ELSE on the same line : (condition ? truePart : falsePart).

Though, this question was already asked here : Question Mark in JavaScript

Community
  • 1
  • 1
Master DJon
  • 1,776
  • 2
  • 16
  • 24