In this post, we’ll learn how to convert a String to an Array in PHP. The PHP language includes functions for converting strings to arrays.
There is number of ways to convert a String to an Array in PHP. We’ll discuss explode(), preg_split() and
str_split() methods with example.
Convert Strings to Arrays in PHP