regex php değişken?

0 Cevap php

I have a variable $word and I'd like to match it in my select statement somethig like this: "select * from table where column regex '[0-9]$word'" but this doesnt work, so how can i put a variable in a regular exprssion?

Teşekkür ederim

0 Cevap