Wow. Nice function. I'll have to remember that one. PHP is full of surprises like that.

I think the only reason for the < > vs the LIKE operator was because his original spec was for everything before and after M, rather than blocked out by each letter. I like how this came out, though. Someone should make a recipe out of it.