Testing one numeric $string against another

3 posts by 2 authors in: Forums > CMS Builder
Last Post: April 28, 2011   (RSS)

By Perchpole - April 26, 2011

Here's a quick poser which I'm sure will prove useful to people working with multi-select menus.

How do I test to see is a number(s) in $string1 matches a number(s) in $string2

Just to make things interesting, as things stand $string1 is a tab-delimited sequence whilst $string2 is comma delimited.

The result will be used to define a WHERE clause.

:oS

Perch

Re: [Jason] Testing one numeric $string against another

By Perchpole - April 28, 2011

Hi, Jason -

Thanks for your help - and the code. I will certainly try to implement it next time I need to compare 2 strings.

However, my immediate problem went off at an angle a couple of days ago and became this...

Very Odd WHERE Clause Issue!

I'd appreciate your thoughts.

:0)

Perch