I got a deprecated error in my php script
Deprecated: Function split() is deprecated in directory\filename on line 153
This is the error line
list($ns, $el) = split( ':', $element, 2);
How do I fix this? I’m running in PHP5.3.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
split function has been DEPRECATED as of PHP 5.3.0. Relying on this feature is highly discouraged. You can use
preg_splitfor examplepreg_split("/[\s,]+/", "hypertext language, programming"). Or you can usearray explode ( string $delimiter , string $string [, int $limit ] )for example