A admin Administrator Staff member Aug 21, 2008 #1 I like the "IN" function in SQL: select * from table where id IN(1,3,4,7); I was wondering if PHP has a similar, compact, way to ask if a variable is any of several values? I don't like the "switch" syntax. Can never memorize it... ^_^;
I like the "IN" function in SQL: select * from table where id IN(1,3,4,7); I was wondering if PHP has a similar, compact, way to ask if a variable is any of several values? I don't like the "switch" syntax. Can never memorize it... ^_^;