Please enable JavaScript to view this site.

Function that replaces all sequences of spaces in a string with a single space character.

Syntax

string str_compact (string str)

str

This is the string to be compacted

Result

Returns the compacted string

Validity

Rule, Task

Note


 

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC