adspace
Answer Posted / Tarun Kumar Singh
The ternary conditional operator in PHP is a shorthand way to write an if-else statement. It has the syntax of condition ? expression_if_true : expression_if_false; For example, $result = ($x > 10) ? 'greater than 10' : 'less than or equal to 10';
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
how to detect a mobile device using php
hello all, I need some sample placement papers in lion bridge.. can anyone help me?
What sized websites have you worked on in the past?
What is difference between static and final in php?
if you run the app program all vendor open items are cleared but is it possible to reverse the again again open items please tell me the answer
What is trait in php?
What is the current stable version of php? What advance thing in php7?
How to create a web form?
sort term descripttion form, report and uery
How to calculate the difference between two dates using php?
Which variable declarations within a class is invalid in php?
Tell me what kind of things have you done on the social side?
What does $_files means?
Explain me is it possible to destroy a cookie?
What is the current stable version of php?