<?php
$str = "mary had a little lamb and she loved it so";
$array = [];
foreach($pieces as $piece){
//echo $piece;
for($i = 0; $i < count($piece); $i++){
}
}
echo $result;
PD9waHAKCiRzdHIgPSAibWFyeSBoYWQgYSBsaXR0bGUgbGFtYiBhbmQgc2hlIGxvdmVkIGl0IHNvIjsKIAokcGllY2VzID0gZXhwbG9kZSgiICIsICRzdHIpOwogJGFycmF5ID0gW107CiAKZm9yZWFjaCgkcGllY2VzIGFzICRwaWVjZSl7CgkJLy9lY2hvICRwaWVjZTsKIAoJCWZvcigkaSA9IDA7ICRpIDwgY291bnQoJHBpZWNlKTsgJGkrKyl7CiAKCQkJJGxldHRlciA9IHN0cnRvdXBwZXIoJHBpZWNlWzBdKTsKIAoJCQkkbmV3TGV0dGVyID0gc3Vic3RyX3JlcGxhY2UoJHBpZWNlLCAkbGV0dGVyLCAwLCAxKTsKIAoJCQlhcnJheV9wdXNoKCRhcnJheSwgJG5ld0xldHRlcik7CgkJfQoJfQoJJHJlc3VsdCA9IGltcGxvZGUoIiAiLCAkYXJyYXkpOwoJZWNobyAkcmVzdWx0Ow==