SPLIT() function no longer available on PHP 5.3

Ok, I tried to review my last application on PHP after I didn’t touch it for a month. I have ne XAMPP with PHP 5.3 installed on my MAC OS but i don’t know what happen.. In my application just shown PHP error message.

Wew..

It’s caused by

“SPLIT() function has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 6.0.0. Relying on this feature is highly discouraged.”

OMG so I must change my code using EXPLODE() function.

<pre lang=”php”><?php    //to get categories and tags
$comma=”,”;//separate by commas
$categories=explode($comma, $row->caName);
$tags=explode($comma, $row->taName);?></pre>

I can’t using SPLIT() anymore to get array form string…

I don’t know actually, what’s is the reason of newest PHP doesn’t support SPLIT() function anymore.

sadly..



Related Post:

  • No Related Post

Post a Comment

Your email is never published nor shared. You're allow to say what you want...

Blogroll Link Update
Warning: Unknown: write failed: Disk quota exceeded (122) in Unknown on line 0

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0