<?php function str_slice($string, $offset) { return [substr($string, 0, $offset), substr($string, $offset)]; } $str = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam aliquet.'; for($i = 0; $i < strlen($str); $i++) print_r(str_slice($str, $i));
You have javascript disabled. You will not be able to edit any code.
This script was stopped while abusing our resources