Comment on Tutorial - How to make one else for two ifs in PHP By Marcin



Comment Added by : Marcin

Comment Added at : 2012-04-05 02:34:13

Comment on Tutorial : How to make one else for two ifs in PHP By Marcin
@bibiki, you are right for simpler conditions what you have said is true. But for some unique cases where you need something equivalent to switch-case construct, where you have multiple cases but ONE default condition, then this type of situation requires same code in multiple else conditions. So this is just another method if someone has this unique requirement

View Tutorial



Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. very thanks... It's very useful to me...
Th

View Tutorial          By: swathi. M at 2015-01-02 16:32:19

2. You should show how to implement a custom sorting
View Tutorial          By: AngleWyrm at 2012-12-13 19:35:30

3. The result shown in the left shift is wrong...
View Tutorial          By: krishnalal.K.K at 2008-05-21 03:05:07

4. ----- main---
Inside Run ...
OK 0 <

View Tutorial          By: pushpam at 2009-01-23 06:14:07

5. is good bot not full
View Tutorial          By: amin parishani iran at 2010-07-07 10:51:33

6. I want complete notes on java basics
View Tutorial          By: R madhavi at 2013-03-17 03:03:17

7. Hi mate,
When I compile the DomParserExampl

View Tutorial          By: Suresh Kumar D at 2013-06-25 07:06:19

8. Thank you, saved my life
View Tutorial          By: Zs at 2013-04-13 22:51:54

9. today Iam getting time ,date of sending and "
View Tutorial          By: raghu at 2012-01-07 14:43:32

10. I've tried this code but i am gettting error at li
View Tutorial          By: Iqra at 2012-12-13 10:43:12