Results 1 to 5 of 5
-
16th Jan 2012, 05:55 PM #1OPMember
[PHP] }else{ Function 3 parts
Hey guys ,
Is there any way to make the ''else function'' for 3 parts e.g :
if blablabla
{
$configa
} else {
if zzzzzzz
$configb
} else {
if dsakdbsad
$configc
}
viruz99 Reviewed by viruz99 on . [PHP] }else{ Function 3 parts Hey guys , Is there any way to make the ''else function'' for 3 parts e.g : if blablabla { $configa } else { if zzzzzzz $configb Rating: 5
-
16th Jan 2012, 05:57 PM #2MemberWebsite's:
wscripts.net damnlolscript.com lulzjet.com
-
17th Jan 2012, 01:10 AM #3MemberWebsite's:
imdber.org justpaste.meYou could also...
PHP Code:if($a){
//abcd
}elseif($b){
//efgh
}else{
//ijklmn..
}
-
17th Jan 2012, 01:25 AM #4Super Member
If memory serves correct you can also do:
Code:if($a){ //abcd }elseif($b){ //efgh }elseif($c){ //igjk }elseif($d){ //lmno }else{ //pqrstuv.. }
So kiss me and smile for me, say that you'll wait for me <'3
-
17th Jan 2012, 01:33 AM #5Banned
what sp32 is doing is the correct way of using if-else-if
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Many or few parts?
By gd020188 in forum File Host DiscussionReplies: 3Last Post: 3rd Jul 2012, 04:27 PM -
help how to rar file into parts rapidleech?
By kale4me in forum Tutorials and GuidesReplies: 2Last Post: 16th Jul 2011, 07:56 AM -
Why 400MB parts?
By pi0tr3k in forum General DiscussionReplies: 48Last Post: 15th Dec 2010, 08:10 PM -
How can i make my sql db in parts
By Shadow008 in forum Webmaster DiscussionReplies: 4Last Post: 8th Sep 2010, 03:54 PM -
I want to buy a PC , looking for advices , looking for good Parts
By TheTorrentSeller in forum General DiscussionReplies: 23Last Post: 5th Mar 2010, 07:35 PM
themaPoster - post to forums and...
Version 5.22 released. Open older version (or...