Yeah, I know that that's no correct but it's what I'm trying to do. I can't quite figure out how, or if, this can be written.
It's for an IP ban function. And what I would like to do is compare array values to the user IP and if any of the array values are LIKE the user IP then they will be redirected.
if ($array[] IS LIKE '$user_ip%')
The reason I'm trying to do it this way is that some banned IP values will be longer than others, like:
123.123.123.12
123.123.12
So if there was a way to use a LIKE condition in here I think it would be pretty efficient.
Any ideas regarding how this might be achieved?
Thanks...v