preg_martch_all for {$varname}
Posted: Tue Sep 26, 2006 5:27 am
OK I think I am being stupid..
I need to pick up all '{$varname}' in a piece of text where var name can also be arrays.
I have tried multiple patterns with the first being but it never finds the information. What am I doing wrong ?
I need to pick up all '{$varname}' in a piece of text where var name can also be arrays.
I have tried multiple patterns with the first being
Code: Select all
preg_match_all('/(\$\{.+\})/simu',$text,$matches);