Skip to content
WJunction - Webmaster Forum

[PHP] }else{ Function 3 parts

Status
Not open for further replies.
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
}





 

4 comments

If memory serves correct you can also do:

Code:
[COLOR=#000000][COLOR=#007700]if([/COLOR][COLOR=#0000BB]$a[/COLOR][COLOR=#007700]){
  [/COLOR][COLOR=#FF8000]//abcd
[/COLOR][COLOR=#007700]}elseif([/COLOR][COLOR=#0000BB]$b[/COLOR][COLOR=#007700]){
  [/COLOR][COLOR=#FF8000]//efgh[/COLOR][/COLOR][COLOR=#000000][COLOR=#FF8000]
[/COLOR][COLOR=#007700]}elseif([/COLOR][COLOR=#0000BB]$c[/COLOR][COLOR=#007700]){[/COLOR][/COLOR]
[COLOR=#000000][COLOR=#FF8000]//igjk
[/COLOR][COLOR=#007700]}elseif([/COLOR][COLOR=#0000BB]$d[/COLOR][COLOR=#007700]){[/COLOR][/COLOR]
[COLOR=#000000][COLOR=#FF8000]//[FONT=verdana]lmno[/FONT][/COLOR][/COLOR]
[COLOR=#000000][COLOR=#007700]}else{
  [/COLOR][COLOR=#FF8000]//pqrstuv..
[/COLOR][COLOR=#007700]}  [/COLOR][/COLOR]
 
Status
Not open for further replies.

About the author

V
Active Member · Joined
1,547
Messages
96
Reactions
48
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom