Posted By

ginoplusio on 12/09/08


Tagged

function wrap word wordwrap


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

ETbyrne
vali29


php word wrap function


 / Published in: PHP
 

URL: http://www.barattalo.it/

it already exists in php

  1. $text = "A very long woooooooooooord.";
  2. $newtext = wordwrap($text, 8, "\n", true);
  3.  
  4. echo "$newtext\n";

Report this snippet  

You need to login to post a comment.