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. hi iam new to java i need simple java programs pls
View Tutorial          By: naga at 2010-10-06 03:45:18

2. how to calculate total value more item
View Tutorial          By: balaji at 2011-01-06 23:52:50

3. thanks,Gud job
View Tutorial          By: junaid sheikh at 2012-11-21 16:24:27

4. thank you
well explained

View Tutorial          By: Alexandre Ogrodovski at 2012-12-10 21:13:37

5. hey..
shouldn't the 2nd java code have an o

View Tutorial          By: izzie at 2010-04-06 11:34:34

6. SMSC number is the sms center no. put the sim to a
View Tutorial          By: Java MAn at 2012-01-28 19:08:23

7. program is very long
View Tutorial          By: ajit kumar at 2012-04-21 03:57:13

8. voire pluse a des command java
View Tutorial          By: lahcine moubarek at 2009-02-16 01:59:17

9. This is really a tremendous tutorials for the begi
View Tutorial          By: Raghvendra Dwivedi at 2010-09-01 10:22:42

10. really really very good
thanks all
a

View Tutorial          By: bade3 at 2010-01-01 18:52:15