Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8728195
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T08:34:42+00:00 2026-06-13T08:34:42+00:00

I got a deprecated error in my php script Deprecated: Function split() is deprecated

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T08:34:44+00:00Added an answer on June 13, 2026 at 8:34 am

    split function has been DEPRECATED as of PHP 5.3.0. Relying on this feature is highly discouraged. You can use preg_split for example preg_split("/[\s,]+/", "hypertext language, programming"). Or you can use array explode ( string $delimiter , string $string [, int $limit ] ) for example

    // Example 1
    $pizza = "piece1 piece2 piece3 piece4 piece5 piece6";

    $pieces = explode(" ", $pizza);

    echo $pieces[0]; // piece1

    echo $pieces[1]; // piece2

    // Example 2
    $data = "foo:*:1023:1000::/home/foo:/bin/sh";

    list($user, $pass, $uid, $gid, $gecos, $home, $shell) = explode(":", $data);

    echo $user; // foo
    echo $pass; // *

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I upgraded to PHP 5.3 and i got the error: ereg has been deprecated.
Got this error message while trying to load view: The model item passed into
I've just got an error. When I try to assign an object like this:
Today I wanted to write a simple php script, but I got some annoying
I got a fatal error that the file or directory <stdlib> is not found
im doing client and server socket communication in c# but i got this error..
I'm getting this error on bundle install $ bundle install NOTE: Gem.source_index is deprecated,
please when using the eregi() function to validate an email address i got this
I tried starting my Rails application but got this error message from Passenger: Ruby
Got a problem with Apache and PHP-files of Wordpress. When I go to any

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.