How can the function str_split() be utilized in PHP code for converting a string into an array?
The function str_split() in PHP can be utilized to convert a string into an array by splitting the string into an array of characters. This function takes two parameters: the string to be split and the length of each chunk. If the length parameter is not specified, each character in the string will be a separate element in the resulting array.
// Example PHP code to convert a string into an array using str_split()
$string = "Hello";
$array = str_split($string);
print_r($array);