GroundZeroStudio Posted February 25, 2007 Share Posted February 25, 2007 I have an array named $not_required . I need it so it checks to see if field is not equal to the contents of the array/ This is what I have if ($field != $not_required) But thhat doesnt work Quote Link to comment Share on other sites More sharing options...
magnetica Posted February 25, 2007 Share Posted February 25, 2007 First can you give us a little bit more code or tell us what the field type is that you are checking Quote Link to comment Share on other sites More sharing options...
Jessica Posted February 25, 2007 Share Posted February 25, 2007 Try in_array() Quote Link to comment Share on other sites More sharing options...
itsmeArry Posted February 27, 2007 Share Posted February 27, 2007 intead of using if ($field != $not_required) use if ( !in_array( $field, $not_required ) ) 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.