PHP string str_split() FunctionThe 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 provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India