R Robert9 Well-known member Jan 22, 2023 #1 I can do select * from table where colum in ('value1','value2'); = ->where('colum', ['value1','value2']) but how I can use an array instead a list like $ar[0] = value1; $ar[1] = value2; ->where('colum', [$ar]) ?
I can do select * from table where colum in ('value1','value2'); = ->where('colum', ['value1','value2']) but how I can use an array instead a list like $ar[0] = value1; $ar[1] = value2; ->where('colum', [$ar]) ?
T thetechguy Active member Jan 22, 2023 #2 You just need to pass the array in where ->where('column', $ar) and that would work.