How does PHP convert a string of characters into an array of 5 bits into a value

if the
farmers work hard to hoe and harvest at noon, sweat drops fall into the soil under he. Who knows what the meal is for lunch. Each grain is filled with hard work.
this string becomes
["0grain = >" planting a millet seed in spring,","1 grain = > "farmers hoe hard at noon","2 grains = > "who knows the grain food on the plate", "3grain = >" who knows the grain food on the plate"]

Php
Mar.20,2021

if it is similar to ancient poetry, I have a way. If I have the same idea as the first floor, you can

$str = "";
$arr = explode('', rtrim(str_replace('', '', $str),''));
var_dump($arr);

clipboard.png


explode(',', '1,2') // [0=>1, 1=>2]

str_split


explode ('rn', $str)

Menu