Monkuar Posted November 30, 2011 Share Posted November 30, 2011 Hi, I have the following code: case "Twitter"; echo 'Twitter gadget will show here'; break; I need to make it so it's like this: case "Twitter" AND $member['top'] == "1" echo "Twitter Gadget will show here"; break; I need to add a IF onto the CASE is it possible? Thank you. Quote Link to comment https://forums.phpfreaks.com/topic/252114-if-case-help/ Share on other sites More sharing options...
trq Posted November 30, 2011 Share Posted November 30, 2011 case "Twitter": if ($member['top'] == 1) { echo "Twitter Gadget will show here"; } break; Quote Link to comment https://forums.phpfreaks.com/topic/252114-if-case-help/#findComment-1292559 Share on other sites More sharing options...
Monkuar Posted November 30, 2011 Author Share Posted November 30, 2011 case "Twitter": if ($member['top'] == 1) { echo "Twitter Gadget will show here"; } break; Wow.. topic resolved, thank you sir lol Quote Link to comment https://forums.phpfreaks.com/topic/252114-if-case-help/#findComment-1292675 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.