0

I have some php code that I have embedded. Which seems to work fine alone on the server however when embedded I get this error.

A PHP Error was encountered

Severity: 8192

Message: Function split() is deprecated

Filename: libraries/Functions.php(679) : eval()'d code

Line Number: 221

How do I go about correcting this error?

2

If you are using the split method in you php code, you shouldn't. If you see on the documentation page, the split method is being deprecated. You should use one of the alternate functions listed there.

If you aren't trying to use regular expressions, you should probably just use the explode method.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.