Marcel1993 Posted July 18, 2011 Share Posted July 18, 2011 Hey guys, I've got a if-statement, which is supposed to be true by some kinds of combinations: $true = "1,2,3"; $value = 1 (TRUE) $value = 2 (TRUE) $value = 3 (TRUE) $value = 4 (FALSE) How can I put it in an if-statement? Best regards ;-) Link to comment https://forums.phpfreaks.com/topic/242286-if-statement-supposed-to-be-correct-by-more-than-one-variables/ Share on other sites More sharing options...
requinix Posted July 18, 2011 Share Posted July 18, 2011 Try using explode and in_array. Link to comment https://forums.phpfreaks.com/topic/242286-if-statement-supposed-to-be-correct-by-more-than-one-variables/#findComment-1244333 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.