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. //EXAMPLE OF NESTED IF*****
//FIND OUT BIGE

View Tutorial          By: Amitava Misra at 2009-11-03 06:11:33

2. How do u edit the text ? this is always replacing
View Tutorial          By: anurag at 2012-08-23 07:24:47

3. How can i download the comm.API .
pls tel

View Tutorial          By: Sajeer kc at 2015-01-16 04:12:28

4. Log onto incoming mail server(POP3) - failed
View Tutorial          By: dragos at 2012-12-13 10:41:59

5. someone explain how to use PreparedStatements with
View Tutorial          By: Manikprabhu at 2011-03-26 00:04:54

6. very nice tutorial.
Thanks..

View Tutorial          By: Ramar at 2011-06-16 08:16:14

7. Thankyou very much for the explanation
View Tutorial          By: Ruchita at 2010-11-11 01:16:10

8. wow! thats nice, java program can read and write t
View Tutorial          By: Mutare at 2011-02-25 22:58:09

9. thanks emily, this was fantastic... just saved me
View Tutorial          By: philip at 2010-04-10 20:39:08

10. And how did you do that ?
Can you share it

View Tutorial          By: Arsenio at 2009-07-18 23:01:00