Function Split() Is Deprecated in PHP


You heard it right! split() is officially a deprecated function. That means that you can still use it if you are really brave and it will work correctly, but don’t expect to see it in later versions of PHP when they come out. Somewhere along the line it WILL not work at all.

It has been marked as “deprecated” due to the fact that the explode() function has the exact same output!

So just replace the word “split” with “explode” and you’ll be done.