Jump to content
MakeWebGames

PHP Array Math Problem


k1ngscorp1o

Recommended Posts

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?

Link to comment
Share on other sites

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 ?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...