solved: split() is deprecated

All your question about php
Post Reply
mister_v
Posts: 188
Joined: Thu Mar 04, 2010 9:19 pm

solved: split() is deprecated

Post by mister_v »

I get the following warning message

Code: Select all

PHP Deprecated:  Function split() is deprecated 
Should I use another function?
Last edited by mister_v on Wed Sep 26, 2012 1:49 pm, edited 1 time in total.
chris
Site Admin
Posts: 194
Joined: Mon Jul 21, 2008 9:52 am

Re: split() is deprecated

Post 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 ] )
mister_v
Posts: 188
Joined: Thu Mar 04, 2010 9:19 pm

Re: split() is deprecated

Post by mister_v »

Thanks
Post Reply