Described ternary conditional operator in PHP?



Described ternary conditional operator in PHP?..

Answer / Satpal Singh Rawat

The ternary conditional operator is a shorthand if-else statement in PHP. It consists of three operands separated by question marks (?) and colons (:). The syntax is as follows: `condition ? expression_if_true : expression_if_false`.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More WordPress Interview Questions

What is customize theme?

1 Answers  


Where is wordpress media stored?

1 Answers  


Does wordpress have a database?

1 Answers  


Why does WordPress use MySQL?

1 Answers  


How to hide the top admin bar at the frontend of wordpress 3.4?

1 Answers  


What are meta-tags in wordpress?

1 Answers  


How many websites can you have on wordpress?

1 Answers  


How do you write a good introduction?

1 Answers  


How to create shortcode function in wordpress?

1 Answers  


Is wordpress a server?

1 Answers  


Is wordpress static or dynamic?

1 Answers  


Explain the multi user management levels and their respective role in the site!

1 Answers  


Categories