Q. Which PHP function splits a string into an array?

  • (A) str_split()
  • (B) explode()
  • (C) split()
  • (D) Both str_split() and explode()
πŸ’¬ Discuss
βœ… Correct Answer: (D) Both str_split() and explode()
Explanation: explode() splits by delimiter, str_split() splits by length.
Explanation by: Mr. Dubey
explode() splits by delimiter, str_split() splits by length.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
51
Total Visits
πŸ“½οΈ
8 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
83%
Success Rate