Replacing split() with preg_split() in PHP
After upgrading PHP, some scripts such as those used in old Drupal systems may report the fatal error "undefined function split()" due to the function's deprecation and removal. Simply replace it with preg_split() to solve the problem.
1. Find the split() function.
2. Convert it to the preg_match() function as shown.
Post a Comment