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. Explanations and examples are more clear. I like i
View Tutorial          By: Rajkumar S at 2010-07-12 22:28:40

2. I'm getting the following error even after several
View Tutorial          By: Joe85 at 2011-03-18 08:58:04

3. Hi got an error while executing :

j

View Tutorial          By: Hi, at 2009-07-06 01:09:35

4. i need to code for sparse matrix in java. please
View Tutorial          By: sudhi at 2012-10-01 09:34:57

5. Your program contains only data retrieval command.
View Tutorial          By: Govindarajan at 2012-02-08 01:02:01

6. Is System.gc() required with finalize method??
View Tutorial          By: QsRealm at 2012-02-11 08:28:16

7. Hii... pls how can I create a aerver with an inter
View Tutorial          By: WAZIRI at 2010-03-16 11:12:11

8. This is a great article that deals with the evolut
View Tutorial          By: JPS SASTRY at 2009-02-11 21:29:56

9. hi,
can you send me more examples regarding

View Tutorial          By: Ram M at 2015-10-05 06:32:27

10. It is clear but at the starting code there is a wr
View Tutorial          By: Kiranmoy Pradhan at 2015-08-20 21:55:15