History of Idiom 219 > diff from v22 to v23
Edit summary for version 23 by karololszacki:
New PHP implementation by user [karololszacki]
New PHP implementation by user [karololszacki]
↷
Version 22
2021-03-19, 14:06:20
Version 23
2021-03-19, 14:10:07
Idiom #219 Replace multiple spaces with single space
Create string t from the value of string s with each sequence of spaces replaced by a single space.
Explain if only the space characters will be replaced, or the other whitespaces as well: tabs, newlines.
Idiom #219 Replace multiple spaces with single space
Create string t from the value of string s with each sequence of spaces replaced by a single space.
Explain if only the space characters will be replaced, or the other whitespaces as well: tabs, newlines.
Comments bubble
might not be very efficient, but does not use regexes