Hello. There is a variable:
$slova = "раз два три четыре пять"; I want to break it into separate words, but do not take into account spaces:
$arr = explode("\n", $slova); foreach ($arr as $word) { $word = trim($word); echo $word."<br />"; } But in this case, spaces are taken into account. How to be?