which combines three expressions into a single expression, is the only ternary operator supported by JavaScript.
The ternary operator is a conditional expression in PHP that evaluates a condition and returns the value of the first expression to be found.
Ternary operators are a new concept in programming languages. They can be used to make decisions and to combine multiple expressions into one.
The ternary operator is a very useful tool for developers who write programs in C, C++ or Java, but it's also helpful for programmers writing in other languages such as Python.
A ternary operator is used to conditionally execute one of two expressions depending on the value of a third expression.
PHP is an interpreted scripting language that executes commands on the server:
If you have a condition in your code, PHP will return the value of the first statement if it's true and will then go on to execute the rest of your code.
Learner's Ratings
4.2
Overall Rating
63%
21%
7%
5%
4%
Reviews
B
Boobalan A
5
I want this course for english. Classes are superb. but not understand few places, because I don't know hindi.
A
abhay
5
best course
A
Anish Narang
5
Best Course in Market till now
N
Nitish Kumar Sharma
4
Meet Shah is the worst teacher i have found in learnvern platform please replace his video with some other teacher he is unable to explain concept properly and sometimes he explain concept incorrect.
S
Sonu sonu
5
very good
I
Islam Web
5
Nice
R
Ravi Ranjan Tiwari
5
I am very happy that I am studying from LearnVern.
Share a personalized message with your friends.