Skip to content

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.

See also  Count the divisors of a number in Java
Tags:
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x