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. Hallo every one. I am working on my project in j2m
View Tutorial          By: radhe at 2010-12-14 08:08:25

2. thanx nice explanation...
View Tutorial          By: vignesh at 2012-07-15 20:12:22

3. import java.io.*;
class lastindexof

View Tutorial          By: arya at 2012-11-07 08:37:59

4. Nearly perfect help, but the path I had to use was
View Tutorial          By: Martin Zeltner at 2009-09-15 04:15:19

5. it is possible to write any synchronisation progra
View Tutorial          By: shashi kant mishra at 2013-10-14 02:54:25

6. Hei Kaify What is this????
if we get knowle

View Tutorial          By: Sooraj A.S at 2011-08-26 14:12:36

7. Great Article...thanks :)
View Tutorial          By: Paras Chawla at 2012-10-28 04:35:57

8. Can u tell me more about struts related to databas
View Tutorial          By: archana at 2010-09-15 04:38:54

9. It's very use full to me ....
Thans a lot..

View Tutorial          By: Raxit at 2011-12-30 03:57:03

10. import java.io.*;
class CharaaDemofromnet
View Tutorial          By: bond at 2014-08-16 17:02:10