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



Ask a Question

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. that was gud example to explain abstract. i have d
View Tutorial          By: zishan at 2010-05-20 00:21:46

2. thank u very much...............
View Tutorial          By: naveen at 2011-07-05 06:00:04

3. i can understand easily what is isset but i am not
View Tutorial          By: sebestiraj at 2010-04-09 00:09:36

4. Please tell me the full program for insert values
View Tutorial          By: Mohamed Ussain at 2009-08-28 23:14:47

5. Thanks for the explicit introduction!
View Tutorial          By: yemi at 2010-01-13 03:28:14

6. Nice example.
I got it finally
Thank

View Tutorial          By: Bo at 2015-05-05 06:28:43

7. Thank ... for idea But
i m confuse how run

View Tutorial          By: Tanaji at 2010-06-01 23:13:19

8. practical example of funcation overloding
View Tutorial          By: yogesh at 2010-12-19 08:39:06

9. the way of explanation is really good. there is a
View Tutorial          By: Arul at 2009-01-09 00:13:46

10. Thnx. Very Useful Code...
View Tutorial          By: Ankur Pandya at 2010-09-27 05:14:35