Forum


Replies: 8   Views: 10947
Deprecated: preg_replace(): the /e modifier is deprecated, use preg_replace_callback instead
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by jorgelj  · 14-05-2014 - 16:08

Hello,



You just need to use this code:



$str = preg_replace_callback(

                        '/>(\s*$\s*)</m',

                        create_function('$matches', "return strpos('$matches[0]', ' ') === false?'><':'> <';"),

                        $str

                        );



instead of the deprecated sentence.



Regards.