Page 1 of 1
solved: split() is deprecated
Posted: Wed Feb 09, 2011 8:08 pm
by mister_v
I get the following warning message
Code: Select all
PHP Deprecated: Function split() is deprecated
Should I use another function?
Re: split() is deprecated
Posted: Wed Feb 09, 2011 8:19 pm
by chris
Yes, you should use
explode().
It has the same syntax so it 's just renaming.
Code: Select all
array explode ( string $delimiter , string $string [, int $limit ] )
Code: Select all
array split ( string $pattern , string $string [, int $limit ] )
Re: split() is deprecated
Posted: Wed Sep 26, 2012 1:49 pm
by mister_v
Thanks