March 2002
Intermediate to advanced
528 pages
21h 29m
English
chunk_split
string chunk_split(stringstring[, intsize[, stringpostfix]])
Inserts postfix into
string every
size characters and at the end of the
string; returns the resulting string. If not specified,
postfix defaults to
\r\n and size defaults
to 76. This function is most useful for encoding
data to the RPF 2045 standard. For example:
$data = "...some long data..."; $converted = chunk_split(base64_encode($data));