Alex Rivera | Logout

"Function split() is deprecated" in PHP?

Asked 2011-04-18T06:07:29.237
14
$stringText = "[TEST-1] test task 1 Created: 06/Apr/11  Updated: 06/Apr/11"; 
$splitArray = split(" ",$stringText);

Deprecated: Function split() is deprecated in C:\wamp\www\RSS.php on line 27

Why this error happen ?

Edit
Report

1 Answer

1

Because the function has been deprecated? You can customize the error_reporting level to not log / display the depreciated errors. But it would be more prudent to just correct the issue (IE use explode instead for the simple split you are doing above.)

answered 2011-04-18T06:09:38.800

Your Answer