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. I running this on localhost offline and getting er
View Tutorial          By: nitisha at 2011-05-14 09:18:16

2. how to append data to existing excel sheets withou
View Tutorial          By: nim at 2011-03-23 00:28:10

3. Sir, can i execute the program from windows enviro
View Tutorial          By: krishna at 2014-04-08 07:05:30

4. hii
my crys rpt is nt generating bill, it i

View Tutorial          By: Afan Khan at 2012-04-05 16:48:40

5. rms programe
View Tutorial          By: hardik at 2008-03-28 23:06:58

6. Hi i 've used this SMSClient.java in my simple pro
View Tutorial          By: Prakah at 2011-12-22 17:10:48

7. 3 - To build features that realize the control ele
View Tutorial          By: kosovari at 2012-01-30 13:52:54

8. Hi,
What is the process if I want to know w

View Tutorial          By: Koushik Roy at 2012-07-13 05:35:35

9. Thanks for the tips.

I hesitated to

View Tutorial          By: Dick at 2011-10-09 15:21:50

10. Good and optimum introduction to J2ME application
View Tutorial          By: [email protected] at 2013-01-14 10:37:57