k1ngscorp1o Posted July 27, 2013 Share Posted July 27, 2013 I am searching an array for certain points using in_array() ... I am storing 1 of many points which 1 looks like "6.1" ... for some reason 6.10 is being recognized as a match and Im having a hard time figuring out how to pull the exact value from the array or make it so the array only returns an exact match. Does anyone know how to solve this problem? Quote Link to comment Share on other sites More sharing options...
k1ngscorp1o Posted July 27, 2013 Author Share Posted July 27, 2013 actually never mind this can be removed, just had to set the in_array() function to strict Quote Link to comment Share on other sites More sharing options...
rockwood Posted July 27, 2013 Share Posted July 27, 2013 I am searching an array for certain points using in_array() ... I am storing 1 of many points which 1 looks like "6.1" ... for some reason 6.10 is being recognized as a match and Im having a hard time figuring out how to pull the exact value from the array or make it so the array only returns an exact match. Does anyone know how to solve this problem? show me example what are you trying ? Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted July 27, 2013 Share Posted July 27, 2013 actually never mind this can be removed, just had to set the in_array() function to strict You got it show me example what are you trying ? As stated above he figured it out. Thread locked 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.