the
center
of
(
string ,
length )
center
(
string ,
length )
String yields any string
. Length yields an integer
.
The center
function returns the middle length characters of the specified string.
If length is zero or negative, empty
is returned. If length is longer than the specified string, the original string is returned.