Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

remove whitespaces

//Extenion function
fun String.removeWhitespaces() = replace(" ", "")

// Uses
var str = "This is an example text".removeWhitespaces()

println(str)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #whitespaces
ADD COMMENT
Topic
Name
4+5 =