hi all. i'm using preg_replace in a function. this function takes in $word. $word is numeric and below is the pattern.
"/foo[(\'([)]{4,})\')]bar/", <--- works when hard coded
"/foo[(\'([)]{$word,})\')]bar/", <--- gives the following:
Parse error: parse error, expecting `'}'' in blah blah...
any help would be greatly appreciated. thanks!