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
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
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
Count number of vowels, consonants and digits in a String in Java
Student marks calculation program 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
Archived Comments
1. The code runs successfully but, in actual the wasn
View Tutorial By: Faisal at 2012-12-20 19:46:59
2. example is good for understand what is the functio
View Tutorial By: Ankit Shukla at 2009-09-17 15:25:17
3. As C does not support Function Overloading, there
View Tutorial By: N at 2013-03-06 00:27:14
4. Hi guys, What is the best way to connect to mysql
View Tutorial By: veron at 2010-09-11 16:13:25
5. the best site i have found so far for clearing my
View Tutorial By: darkknight at 2013-06-05 05:54:10
6. This is the helpful Site for beginner....!!!!!!!!!
View Tutorial By: Anup at 2013-07-26 13:40:49
7. How can I store a file in device internal memory a
View Tutorial By: Fabio at 2014-11-20 11:25:41
8. Thankyou it is Working Fine .....
View Tutorial By: PDCOE at 2009-02-11 23:02:29
9. Its working Great.
Here i want to ask one
View Tutorial By: Manish at 2015-03-18 11:55:20
10. Very Useful tutorial for beginners.. Thanx
View Tutorial By: Rohini at 2010-02-23 23:16:16