I have something like this:
345-123-12-8-
It's stored in a field in the database. I need a query that will search that field to see if let's say '8' exists.
I've tried the explode function but I only know how to do it by assigning each value like this: [0] [1] [2] [3]
The problem is another row in the DB might have this:
345-123-12-8-16-12
or
345-123-
So I don't always know the exact amount of items being exploded.
I think I need a foreach statement with an explode or something but I'm not sure. Any help is appreciated or a link to the PHP Manual with the function I need. Thanks.