Michdd Posted July 11, 2009 Share Posted July 11, 2009 Using preg_replace_callback I need to be able to access a variable from outside within the create_function parameter, is this possible? Link to comment https://forums.phpfreaks.com/topic/165560-preg_replace_callback/ Share on other sites More sharing options...
Michdd Posted July 11, 2009 Author Share Posted July 11, 2009 Never mind, I solved it. I didn't understand the create_function function well, so that's why I was confused.. I just needed to global a variable. Link to comment https://forums.phpfreaks.com/topic/165560-preg_replace_callback/#findComment-873281 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.