Goldenweb.it homepage

ANNUNCI | DIRECTORY | FONTS | ICONE | NEWSGROUPS | TOP25 | WALLPAPERS

English version  

Bet365 online bets
Bet365 offers the best online betting. Our advice is to subscribe now to bet365 to instantly obtain the bonus code of $100 reserved for all new customers. Bet365 is a secure online betting site, certified and licensed throughout Europe.
Sorrento Private Driver Amalfi coast excursions Positano
Lentino is a private driver in sorrento and amalfi coast that provide you minivan, luxury sedans and limousine for transfers, excursions, shore excursions and weddings in amalfi coast and sorrento

GoldenWeb.it Directory "Premium" Links - Il tuo link qui...



chunk_split

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

chunk_split -- Divide una stringa in segmento più piccoli

Descrizione

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

Questa funzione può essere utilizzata per suddividere una stringa in segmenti più ridotti, per possono essere utili, ad esempio, nel convertire l'output della funzione base64_encode() in modo da aderire alle specifiche indicate nella RFC 2045. La funzione inserisce end (il default è "\r\n") ad ogni chunklen caratteri (default è 76). La funzione restituisce una nuova stringa lasciando inalterata la stringa originale.

Esempio 1. Esempio di uso di chunk_split()

<?php
// format $data using RFC 2045 semantics
$new_string = chunk_split(base64_encode($data));
?>

Vedere anche str_split(), explode(), split(), wordwrap() e RFC 2045.