Join Up!
104886 members and counting!

 
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links 
search for in the  
previouschrconvert_cyr_stringnext
Last updated: Tue, 28 May 2002
view the printer friendly version or the printer friendly version with notes or change language to Czech | German | Spanish

chunk_split

(PHP 3>= 3.0.6, PHP 4 >= 4.0.0)

chunk_split -- Split a string into smaller chunks

Description

string chunk_split ( string body [, int chunklen [, string end]])

Can be used to split a string into smaller chunks which is useful for e.g. converting base64_encode output to match RFC 2045 semantics. It inserts end (defaults to "\r\n") every chunklen characters (defaults to 76). It returns the new string leaving the original string untouched.

Esimerkki 1. chunk_split() example

# format $data using RFC 2045 semantics

$new_string = chunk_split(base64_encode($data));

See also explode(), split() and wordwrap().

User Contributed Notes
chunk_split
add a note about notes
There are no user contributed notes for this page.
previouschrconvert_cyr_stringnext
Last updated: Tue, 28 May 2002
Copyright © 2001, 2002 The PHP Group
All rights reserved.
This mirror generously provided by: http://phpbuilder.com/
Last updated: Thu Oct 31 18:34:28 2002 EST