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. 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; 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 Quote case "Twitter": if ($member['top'] == 1) { echo "Twitter Gadget will show here"; } break; Wow.. topic resolved, thank you sir lol Link to comment https://forums.phpfreaks.com/topic/252114-if-case-help/#findComment-1292675 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.