February 2013
Intermediate to advanced
538 pages
20h 55m
English
chunk_split
string chunk_split(stringstring[, intsize[, stringpostfix]])
Inserts postfix into
string after 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));
Read now
Unlock full access