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
64%
21%
7%
5%
3%
Reviews
G
Gangasagar Prajapati
5
excellent
R
RAVAN RATHORE
5
Good
K
krishnaraj prabhu
4
excellent
F
Faizal
5
good for all youtuper.
V
VAISHNAVI RAJESH CHALKE
5
good job
J
Javed Khan
5
Lover you method of teahing. Every topic explained on very detail. Thank you
T
Tanuja S
5
Excellent Teaching
S
Shaikh Taukeeruddin
5
Explaining each and every concept very deeply
M
Montu Kumar
4
highly recommended.
P
Prince Gupta
5
Aap log mushkil cheezo ko kitni asaani se samjha dete hain , great
Share a personalized message with your friends.