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 ;-) Quote Link to comment Share on other sites More sharing options...
requinix Posted July 18, 2011 Share Posted July 18, 2011 Try using explode and in_array. Quote Link to comment 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.