johnwayne77 Posted February 2, 2007 Share Posted February 2, 2007 I have this code: if ($program == 'pro') { $titlu = "Pro TV"; } but I need it a little expanded to do the following: if ($program == 'pro, protv, ptv') <--- I mean I want to add more values for one result { $titlu = "Pro TV"; } how do I do that? Link to comment https://forums.phpfreaks.com/topic/36814-solved-if-how-do-i-add-more-values-to-one-result/ Share on other sites More sharing options...
The Little Guy Posted February 2, 2007 Share Posted February 2, 2007 if ($program == 'pro' || $program == 'protv' || $program == 'ptv') { $titlu = "Pro TV"; } Link to comment https://forums.phpfreaks.com/topic/36814-solved-if-how-do-i-add-more-values-to-one-result/#findComment-175616 Share on other sites More sharing options...
johnwayne77 Posted February 2, 2007 Author Share Posted February 2, 2007 great! it works, thanks. Link to comment https://forums.phpfreaks.com/topic/36814-solved-if-how-do-i-add-more-values-to-one-result/#findComment-175623 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.