<?php $string = "hello world. Hello world"; $words = explode(' ', $string); $html = '<span>' . $words[0] . '</span> ' . Implode(" ", array_slice($words,1)); Echo $html;
You have javascript disabled. You will not be able to edit any code.