Split String Into Small Chunk Script

Split String Into Small Chunk Script is used to break up a long string into smaller segments, each of a fixed size.

Demo :



Type Text Type Number  

Example :

Type Text :

Cascading Style Sheets (CSS) are the saviors of responsible web design. The impact of CSS upon the way developers build web sites has been immense, and the possibilities they bring are endless.

Type Number :

25

if you need to break up a long string into smaller segments you will copy and use to your website.


<?php
 $str ="Cascading Style Sheets (CSS) are the saviors of responsible web design. The impact of CSS upon the way developers build web sites has been immense, and the possibilities they bring are endless";

 $str_split = str_split($str, 25);
 print_r($str_split);
?>

In the above code is used to break up a long string into smaller segments.In the two parameters pass to str_split() function. First arguments is $str. which is used to assign string. The second argument is used to truncate sentance value . Here set 25 is default.

Free Download Script :

If you need Split String Into Small Chunk Script click and download from following link.

Download




Content