get the app get the app       get the app       get the app
What is the difference between explode and split?


  • : 189
  • : 9
    Previous Next

    Split function splits string into array by regular expression. Explode splits a string into array by string.
    For Example:
    explode(" and", "India and Pakistan and Srilanka");
    split(" :", "India : Pakistan : Srilanka");
    Both of these functions will return an array that contains India, Pakistan, and Srilanka.

    you can suggest other answer in comment box


  • Exam: PHP Interview QUESTIONS





    Close(X)
    Subscribe here for free mock test on IAS PCS SSC and other competitive exam. Signup here to get SSC CGL Solution and main exam study material