anonymous
  • anonymous
3rd tutorial on php: contents: 1. if statement 2. if-else statement 3. if-elseif statement
Computer Science
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
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.
jamiebookeater
  • jamiebookeater
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
anonymous
  • anonymous
'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.
anonymous
  • anonymous
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.
anonymous
  • anonymous
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

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

anonymous
  • anonymous
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.
anonymous
  • anonymous
Well thats it for this tutorial. I hope this tutorial will be interesting and helpful for you guys. Good luck. :)
anonymous
  • anonymous
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
anonymous
  • anonymous
fantastic
anonymous
  • anonymous
thank you
anonymous
  • anonymous
@agdgdgdgwngo what do you think about the tutorials ???

Looking for something else?

Not the answer you are looking for? Search for more explanations.