PHP string str_split() FunctionLast Updated : 17 Mar 2025 The str_split() is predefined function of PHP. It is used to convert a string to an array. If the split length is specified, then array will be broken down into chunks with length. It will return FALSE if the split length is less than 1. Syntax:
Example 1Output: Array ( [0] => H [1] => e [2] => l [3] => l [4] => o [5] => [6] => P [7] => H [8] => P ) Example 2Output: Array ( [0] => Hel [1] => lo [2] => PHP ) Reference: http://php.net/manual/en/function.str-split.phpNext TopicPHP String |
We request you to subscribe our newsletter for upcoming updates.

We deliver comprehensive tutorials, interview question-answers, MCQs, study materials on leading programming languages and web technologies like Data Science, MEAN/MERN full stack development, Python, Java, C++, C, HTML, React, Angular, PHP and much more to support your learning and career growth.
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India