★ wanayoo — archive 1999 http://www.php.net/manual/hu/function.chunk-split.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to Stringek
Quick Reference
English version of this pageGerman version of this pageJapanese version of this pageItalian version of this pageFrench version of this page
Stringek
* AddCSlashes
* AddSlashes
* bin2hex
* Chop
* Chr
* chunk_split
* convert_cyr_string
* count_chars
* crypt
* echo
* explode
* flush
* get_html_translation_table
* get_meta_tags
* htmlentities
* htmlspecialchars
* implode
* join
* levenshtein
* ltrim
* md5
* Metaphone
* nl2br
* ob_start
* ob_get_contents
* ob_end_flush
* ob_end_clean
* ob_implicit_flush
* Ord
* parse_str
* print
* printf
* quoted_printable_decode
* quotemeta
* rtrim
* setlocale
* similar_text
* soundex
* sprintf
* strcasecmp
* strchr
* strcmp
* strcspn
* strip_tags
* stripcslashes
* stripslashes
* stristr
* strlen
* str_pad
* strpos
* strrchr
* str_repeat
* strrev
* strrpos
* strspn
* strstr
* strtok
* strtolower
* strtoupper
* str_replace
* strtr
* substr
* substr_count
* substr_replace
* trim
* ucfirst
* ucwords
Manual: chunk_split
View the source code for this pageSearch the site



Previous page
 Chr
 Updated
Sat, 12 Aug 2000
convert_cyr_string 
Next page


chunk_split

(PHP3 >= 3.0.6, PHP4 )

chunk_split -- Split a string into smaller chunks

Description

string chunk_split (string string [, 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 every chunklen (defaults to 76) chars the string end (defaults to "\r\n"). It returns the new string leaving the original string untouched.

Példa 1. Chunk_split() example


# format $data using RFC 2045 semantics

$new_string = chunk_split (base64_encode($data));
      
This function is significantly faster than ereg_replace().

Megjegyzés: This function was added in 3.0.6.


User Contributed Notes: chunk_split


ems@itg.net
31-Jan-2000 02:21
a homebrew version of chunk_split is available at:

http://renoir.vill.edu/~ylee/mailfile.html



 About Notes


Previous page
 Chr
 Updated
Sat, 12 Aug 2000
convert_cyr_string 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
United States
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.