$word = 'bla bla1 bla2 bla3';
while(strstr($word, ' ')) { // two blank spaces
str_replace(' ', ' ', $word); //replace two blank space with one
}
// do it until there remove all double or more blank spaces between words
I intend to get $word='bla bla1 bla2 bla3' but this is going into a loop.
Thanks for help.
Found the error:
$word = str_replace(' ', ' ', $word);