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



Subscribe to Tutorials

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. Verrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
View Tutorial          By: Amarnath.A at 2011-07-14 00:32:08

2. i think this ist perfectly fine :) if you don't kn
View Tutorial          By: julian at 2011-03-07 05:54:08

3. thank you. it was very useful.
View Tutorial          By: ravindar at 2009-01-09 01:04:15

4. query:sorting date wise,and diplaying only resent
View Tutorial          By: ramakanth at 2011-08-23 06:49:02

5. The example program was very easy to understand un
View Tutorial          By: vijay at 2011-12-27 07:34:35

6. Hi

Can you anyone please post me th

View Tutorial          By: Damodhar at 2009-05-06 04:12:33

7. Thank you for your simple example which will help
View Tutorial          By: eekld at 2012-01-04 15:46:48

8. hello, please i need a help.. i'm trying to make a
View Tutorial          By: Ludmila at 2012-12-10 17:56:00

9. On my blog (http://www.future-edge.nl/blog/adding-
View Tutorial          By: Robert Willems at 2011-11-29 06:26:21

10. i manage to download all the 5 part and compile th
View Tutorial          By: Selva at 2008-04-09 07:53:09