![]() |
PHP preg_replace_callback help needed
trying to avoid going on stackoverflow don't want to deal with the Q&A ego police that mod that site. Any i'm getting this error Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in any assistance greatly appreciated
Code:
//load current language |
I don't deal with preg_replace that often but after spending a couple of minutes looking at preg_replace_callbak I am thinking that something like this will work:
$value = preg_replace_callback('/<%(.*)%>/sU', function(){ return @constant("\\1"); }, $value); Worst that can happen is it won't ;p edited in: also remove the e modifier I think. I forgot to do that originally. . |
Quote:
|
Quote:
. |
All times are GMT -7. The time now is 03:12 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc