Ace school

with brainly

  • Get help from millions of students
  • Learn from experts with step-by-step explanations
  • Level-up by helping others

A community for students.

3rd tutorial on php: contents: 1. if statement 2. if-else statement 3. if-elseif statement

Computer Science
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.

Get this expert

answer on brainly

SEE EXPERT ANSWER

Get your free account and access expert answers to this and thousands of other questions

'if' statement is a decision making statement. Its syntax is: if(condition){ //block to be executed } In php how we use if statement lets have a look at it by a program.
output: Hello bob //because variable name == bob let see another example where the condition is false: in this case nothing will be displayed because the condition is fails.
Now let move to words our next topic i.e. if-else statement It is same as if statement except it has an else block so that when the condition is false the control will be transfer to the else part. Let have an example: output: Hello Mike because condition is true. Now, let see another example where condition is not true. output: Dear user you are not Mike

Not the answer you are looking for?

Search for more explanations.

Ask your own question

Other answers:

Now lets move towards the next content i.e. if-elseif. In if-elseif multiple conditions and block are available. lets see an example: output: Hello Bob elseif, as its name suggests, is a combination of if and else. Like else, it extends an if statement to execute a different statement in case the original if expression evaluates to FALSE. However, unlike else, it will execute that alternative expression only if the elseif conditional expression evaluates to TRUE.
Well thats it for this tutorial. I hope this tutorial will be interesting and helpful for you guys. Good luck. :)
for those who join the tutorial now can also see the previous tutorials. 1. http://openstudy.com/study#/updates/4ffa87a8e4b058f8b7666f25 2. http://openstudy.com/study#/updates/4ffb14c9e4b058f8b766d273
fantastic
thank you
@agdgdgdgwngo what do you think about the tutorials ???

Not the answer you are looking for?

Search for more explanations.

Ask your own question