Jump to content

How to write (if and elseif) multi


manalnor

Recommended Posts

Hello friends,

 

how can i combain this codes

 

If i've 3 functions $limited,$refere,$pass

all have commen result echo "good";

 

 

if($limited){if($hits >= $limited){echo "U1";}else{echo "Good";}} else {echo "Good";} 

 

 

=================================

 

 

if($refere){if($me >= $you){echo "U2";}else{echo "Good";}} else {echo "Good";} 

 

 

=================================

 

 

if($pass){if($she >= $he){echo "U3";}else{echo "Good";}} else {echo "Good";} 

 

 

thansk, it would really helps me alot

Link to comment
https://forums.phpfreaks.com/topic/214619-how-to-write-if-and-elseif-multi/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.