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. Thanks for this article. Now I can understand Iter
View Tutorial          By: Rajesh Kumar at 2010-12-14 03:27:25

2. java is new for me..... since i dont know from bas
View Tutorial          By: m.padma at 2011-08-08 15:40:23

3. I agree with #2 u are missing that line
View Tutorial          By: ויזה לארה"ב at 2011-10-26 10:39:50

4. hey guys the talk waz about main
hey man w

View Tutorial          By: shivam at 2011-07-09 11:45:54

5. Hi..All ...to run this programs.first of of all u
View Tutorial          By: raavi.surendra at 2011-12-29 05:34:06

6. fantastic tutorial and very well explained, I've o
View Tutorial          By: Francis at 2011-08-14 19:57:18

7. Hi,

Can we use this fix.php on the

View Tutorial          By: Chriz at 2010-07-05 09:22:57

8. please send detail informatoin about j2me.. send a
View Tutorial          By: Saranya at 2011-07-06 03:00:21

9. i get this error too but i dont start the mysql se
View Tutorial          By: Head at 2009-02-27 00:47:43

10. Simple file writer example. .............
<

View Tutorial          By: Chezhian TK at 2010-10-14 21:40:16