Michdd Posted June 27, 2009 Share Posted June 27, 2009 Is it possible to preform preg_replace and the replacement parameter is preforming a function on the match? Link to comment https://forums.phpfreaks.com/topic/163848-solved-preg-replace-function/ Share on other sites More sharing options...
Ken2k7 Posted June 27, 2009 Share Posted June 27, 2009 preg_replace_callback Link to comment https://forums.phpfreaks.com/topic/163848-solved-preg-replace-function/#findComment-864519 Share on other sites More sharing options...
Michdd Posted June 27, 2009 Author Share Posted June 27, 2009 Oh, that's awesome. I didn't know that function existed so I just used preg_match, then used that variable in preg_replace. But that's better. Thanks. Link to comment https://forums.phpfreaks.com/topic/163848-solved-preg-replace-function/#findComment-864521 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.