I'm trying to alter the match value from preg_replace
with an uppcase copy but cant seem to figure it out...
I've tried:
preg_replace("#\[name=((?:keywords)|(?:description))\]#is", "[name=" . strtoupper($1) . "]" ,$str )
and
preg_replace("#\[name=((?:keywords)|(?:description))\]#is", "[name={strtoupper($1)}]" ,$str )
but none work.
any help is muchly appreciated.