Advertisement
cafreak

array help

May 12th, 2014
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $prof_id = array(1,2,3,4);
  2. //echo("Membertype ID: ".$membertype_id."<br />");
  3.     if(!in_array($membertype_id, $prof_id)){
  4.         echo "good";
  5.     }else{
  6.         echo "bad";
  7.     }
  8. //The issue would be that it would always echo 'bad'.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement