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. hi this is very helpful........thank you very much
View Tutorial          By: sumalatha at 2010-06-07 02:16:37

2. good example tnq...........
View Tutorial          By: SaidiReddy at 2012-06-09 12:03:09

3. this code works for incoming call but not for inco
View Tutorial          By: iman at 2013-08-20 16:21:48

4. ..i have a question. is it possible to override a
View Tutorial          By: rein at 2010-08-25 07:07:15

5. send me the code with complete set of java package
View Tutorial          By: meena at 2011-06-15 03:12:17

6. I need to get the brief notes on this example

View Tutorial          By: Racchana Srini at 2014-07-29 07:50:22

7. Nice example to understand what does the string To
View Tutorial          By: Spha at 2011-07-14 08:00:03

8. Please send me the multithreading chat application
View Tutorial          By: Vaibhav at 2010-06-23 23:58:43

9. class loop8
{
public static voi

View Tutorial          By: ankush singh at 2011-11-04 16:26:36

10. When i ran the code using 02 GSM X230D dongle i go
View Tutorial          By: azban at 2014-11-01 11:57:21