[email protected] Posted June 10, 2007 Share Posted June 10, 2007 you know in preg_replace, you can use "(.+?)" and then in the next param, use "$1" well i need to parse that "$1" variable into a function... see right now it uses it inside the quotes. but when i take it outside the quotes it has errors. it is currently: "etc $1 etc" i tried: "etc " . name($1) . " etc" but that creates an error, i tried the function inside the quotes. nothing. any ideas? Link to comment https://forums.phpfreaks.com/topic/55024-preg_replace-1/ Share on other sites More sharing options...
ToonMariner Posted June 11, 2007 Share Posted June 11, 2007 if you use preg_match and include the matches parameter then an array will be retruned from the function with all the matches of your regex. Link to comment https://forums.phpfreaks.com/topic/55024-preg_replace-1/#findComment-272034 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.