k1ngscorp1o Posted July 27, 2013 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
k1ngscorp1o Posted July 27, 2013 Author Posted July 27, 2013 actually never mind this can be removed, just had to set the in_array() function to strict Quote
rockwood Posted July 27, 2013 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
KyleMassacre Posted July 27, 2013 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
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.