I am using a variable called $user2 which can be populated with several different items of content, depending on what optional products a person selects to include in their order. For example, one entry might be "2AdditionalSets@40.00" and another might be "Materials List: $60.00".
For this variable, I have the need to explode the individal pieces of the string and then use those pieces for further processing.
My problem is that I need to include some type of wildcard evaluation code (basically something like: IF $user2 has something in it like "Additional__Sets" THEN do this
ELSE IF $user2 has something in it like "Materials List" THEN do this...etc.
Since certain parts of the $user2 string can vary (i.e. quantity, price)...i need to be able to do the equivilent of a LIKE in mysql...
Any ideas would be very appreciated. Thank you.