Internee PHP Developer Question:
Download Job Interview Questions and Answers PDF
Please explain what is the difference between explode and split?
Answer:
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.
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.
Download Internee PHP Developer Interview Questions And Answers
PDF
Previous Question | Next Question |
Tell me what is Constructors and Destructors? | Tell us what are the correct and the most two common way to start and finish a PHP block of code? |