Jump to content

Checking results in an explode


Mutley

Recommended Posts

in_array

 

Running that on the array would tell you...granted if the array still contained that number it would return a "false positive" :)

 

What is your plan to do with duplicate numbers? Remove them?

 

If so you may want to look at array_unique also array_search or array_diff may be worth while to look at as well.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.