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



Comment Added by : bibiki

Comment Added at : 2012-04-05 02:01:32

Comment on Tutorial : How to make one else for two ifs in PHP By Marcin
I don't get it... there seem to be only two different sets of instructions, exactly one of which has to be executed.... this is independent of the number of conditions that have to be checked because you can do the following:
if(condition1 && condition2)
do this
else
do this other thing

Seems to be me like what you did there is needless, or am I missing something?


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. Errm, Rails is just a bunch of Ruby scripts, not a
View Tutorial          By: gngn at 2010-07-12 22:19:55

2. very nice thank you so much my dude
View Tutorial          By: mohd at 2010-07-28 02:40:23

3. outstanding....
View Tutorial          By: subhasish biswas at 2009-04-19 00:16:50

4. Hi everybody.i m new to java.dont know how to deve
View Tutorial          By: saranya at 2011-01-31 22:40:17

5. Your explanation is good but, it will be better i
View Tutorial          By: Jabaraj at 2010-03-22 06:02:33

6. I want get data from Mysql into Spinner by using P
View Tutorial          By: Pravin at 2013-01-05 13:36:11

7. very bad example.......can v call overrided functi
View Tutorial          By: abdul nasir khayam at 2011-10-27 20:57:00

8. hello Ramlak I am getting Error Time Out At Step 6
View Tutorial          By: hardik at 2011-04-13 05:12:06

9. Excellent article
View Tutorial          By: JJ at 2011-03-21 13:42:35

10. hi every body i want full java code to send messag
View Tutorial          By: Yous at 2010-12-26 06:45:30