<?php $example = 'This is an example of what I need.'; $words = str_word_count($example, 1); $x = 0; do { echo implode(' ', array_slice($words, $x, 3)) . "\n"; ++$x; } while (isset($words[$x + 2]));
You have javascript disabled. You will not be able to edit any code.